Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 2 additions & 27 deletions JetStreamDriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
};
Expand Down Expand Up @@ -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;
`;
Expand Down Expand Up @@ -1451,9 +1429,6 @@ class WasmLegacyBenchmark extends Benchmark {
};
};

Module.setStatus = null;
Module.monitorRunDependencies = null;

Promise.resolve(42).then(() => {
try {
andThen();
Expand Down
Loading