diff --git a/JetStreamDriver.js b/JetStreamDriver.js index 7bfa1e2a..5cc41ee1 100644 --- a/JetStreamDriver.js +++ b/JetStreamDriver.js @@ -1271,28 +1271,13 @@ class WasmEMCCBenchmark extends AsyncBenchmark { postRun: [], noInitialRun: true, print: print, - printErr: printErr, - setStatus: function(text) { - }, - totalDependencies: 0, - monitorRunDependencies: function(left) { - this.totalDependencies = Math.max(this.totalDependencies, left); - Module.setStatus(left ? 'Preparing... (' + (this.totalDependencies-left) + '/' + this.totalDependencies + ')' : 'All downloads complete.'); - }, + printErr: printErr }; globalObject.Module = Module; ${super.prerunCode}; `; - if (isSpiderMonkey) { - str += ` - // Needed because SpiderMonkey shell doesn't have a setTimeout. - Module.setStatus = null; - Module.monitorRunDependencies = null; - `; - } - return str; } }; @@ -1413,14 +1398,7 @@ class WasmLegacyBenchmark extends Benchmark { preRun: [], postRun: [], print: globalObject.print, - printErr: globalObject.print, - setStatus: function(text) { - }, - totalDependencies: 0, - monitorRunDependencies: function(left) { - this.totalDependencies = Math.max(this.totalDependencies, left); - Module.setStatus(left ? 'Preparing... (' + (this.totalDependencies-left) + '/' + this.totalDependencies + ')' : 'All downloads complete.'); - } + printErr: globalObject.print }; globalObject.Module = Module; `; @@ -1451,9 +1429,6 @@ class WasmLegacyBenchmark extends Benchmark { }; }; - Module.setStatus = null; - Module.monitorRunDependencies = null; - Promise.resolve(42).then(() => { try { andThen();