Browse Source

chore: remove always falsy condition on perf (#6547)

dev
Clark Du 7 years ago
committed by Evan You
parent
commit
76182a2645
  1. 5
      benchmarks/dbmon/lib/memory-stats.js

5
benchmarks/dbmon/lib/memory-stats.js

@ -46,10 +46,7 @@ var MemoryStats = function (){
var perf = window.performance || {}; var perf = window.performance || {};
// polyfill usedJSHeapSize // polyfill usedJSHeapSize
if (!perf && !perf.memory){ if (!perf.memory){
perf.memory = { usedJSHeapSize : 0 };
}
if (perf && !perf.memory){
perf.memory = { usedJSHeapSize : 0 }; perf.memory = { usedJSHeapSize : 0 };
} }

Loading…
Cancel
Save