summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/tests/testdata/wasm_streaming_panic_test.js.out2
-rw-r--r--cli/tests/unit/wasm_test.ts8
2 files changed, 5 insertions, 5 deletions
diff --git a/cli/tests/testdata/wasm_streaming_panic_test.js.out b/cli/tests/testdata/wasm_streaming_panic_test.js.out
index c21d709dd..3e93f643a 100644
--- a/cli/tests/testdata/wasm_streaming_panic_test.js.out
+++ b/cli/tests/testdata/wasm_streaming_panic_test.js.out
@@ -1,2 +1,2 @@
error: Uncaught (in promise) TypeError: Invalid WebAssembly content type.
- at deno:ext/fetch/26_fetch.js:[WILDCARD]
+ at handleWasmStreaming (deno:ext/fetch/26_fetch.js:[WILDCARD])
diff --git a/cli/tests/unit/wasm_test.ts b/cli/tests/unit/wasm_test.ts
index 3484b7f81..1b31249d4 100644
--- a/cli/tests/unit/wasm_test.ts
+++ b/cli/tests/unit/wasm_test.ts
@@ -45,11 +45,11 @@ Deno.test(
Deno.test(
async function wasmInstantiateStreamingNoContentType() {
+ const response = new Response(simpleWasm);
+ // Rejects, not throws.
+ const wasmPromise = WebAssembly.instantiateStreaming(response);
await assertRejects(
- async () => {
- const response = Promise.resolve(new Response(simpleWasm));
- await WebAssembly.instantiateStreaming(response);
- },
+ () => wasmPromise,
TypeError,
"Invalid WebAssembly content type.",
);