diff options
Diffstat (limited to 'cli/tests/unit/wasm_test.ts')
-rw-r--r-- | cli/tests/unit/wasm_test.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cli/tests/unit/wasm_test.ts b/cli/tests/unit/wasm_test.ts index c2180db3c..938eeab7a 100644 --- a/cli/tests/unit/wasm_test.ts +++ b/cli/tests/unit/wasm_test.ts @@ -48,6 +48,19 @@ unitTest( }, ); +unitTest( + async function wasmInstantiateStreamingNoContentType() { + await assertThrowsAsync( + async () => { + const response = Promise.resolve(new Response(simpleWasm)); + await WebAssembly.instantiateStreaming(response); + }, + TypeError, + "Invalid WebAssembly content type.", + ); + }, +); + unitTest(async function wasmInstantiateStreaming() { let isomorphic = ""; for (const byte of simpleWasm) { |