Skip to content

Commit

Permalink
fix(best): Temporary fix for IE11
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinko committed May 24, 2018
1 parent bea8ed1 commit 6fab658
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/best-runtime/src/run_iteration.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ const _initHooks = hooks =>

const _forceGC = () => window.gc && window.gc();

// Temporary fix
// TODO (dbajric): Use https://www.npmjs.com/package/console-polyfill
if (!console.timeStamp) {
console.timeStamp = function () { };
}

const executeBenchmark = async (benchmarkNode, { useMacroTaskAfterBenchmark }) => {
// Force garbage collection before executing an iteration (--js-flags=--expose-gc)
_forceGC();
Expand Down

0 comments on commit 6fab658

Please sign in to comment.