Skip to content

Set setStatus: null and monitorRunDependencies: null explicitly for w… #119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 11, 2025
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