Skip to content

Commit 2154b00

Browse files
authored
Fix regression with WASI test runner (#330)
1 parent 7f5374e commit 2154b00

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/server/server.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -1491,12 +1491,10 @@ connection.onRequest(TEST_FILE_REQUEST, async (event): Promise<TestResult> => {
14911491
console.log('Compile time:', Date.now() - start);
14921492

14931493
const WebAssembly = (global as any).WebAssembly;
1494-
const module = await (
1495-
WebAssembly.compileStreaming || WebAssembly.compile
1496-
)(wasiResult.wasm);
1494+
const module = await WebAssembly.compile(wasiResult.wasm);
14971495
await initWASI();
14981496
const wasi = new WASI({});
1499-
await wasi.instantiate(module, {});
1497+
wasi.instantiate(module, {});
15001498
const exitCode = wasi.start();
15011499
const stdout = wasi.getStdoutString();
15021500
const stderr = wasi.getStderrString();

0 commit comments

Comments
 (0)