Skip to content

Commit e00cb16

Browse files
committed
Reduce code duplication in Wasm runner
1 parent d8cbaab commit e00cb16

File tree

1 file changed

+14
-19
lines changed

1 file changed

+14
-19
lines changed

wasm-cli.js

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,18 @@
2323
* THE POSSIBILITY OF SUCH DAMAGE.
2424
*/
2525

26-
const isInBrowser = false;
27-
console = {
28-
log: () => { }
29-
}
26+
testList = [
27+
"HashSet-wasm",
28+
"tsf-wasm",
29+
"quicksort-wasm",
30+
"gcc-loops-wasm",
31+
"richards-wasm",
32+
"tfjs-wasm",
33+
"tfjs-wasm-simd",
34+
"argon2-wasm",
35+
"argon2-wasm-simd",
36+
"8bitbench-wasm",
37+
];
3038

31-
testList = ["HashSet-wasm", "tsf-wasm", "quicksort-wasm", "gcc-loops-wasm", "richards-wasm", "tfjs-wasm", "argon2-wasm", "argon2-wasm-simd"];
32-
33-
RAMification = false;
34-
35-
load("./JetStreamDriver.js");
36-
37-
async function runJetStream() {
38-
try {
39-
await JetStream.initialize();
40-
JetStream.start();
41-
} catch (e) {
42-
throw e;
43-
}
44-
}
45-
runJetStream();
39+
// Re-use the full CLI runner, just with the subset of Wasm line items above.
40+
load("./cli.js");

0 commit comments

Comments
 (0)