oom-wasm-streaming.js (348B)
1 ignoreUnhandledRejections(); 2 3 try { 4 WebAssembly.compileStreaming(); 5 } catch (err) { 6 assertEq(String(err).indexOf("not supported with --no-threads") !== -1, true); 7 quit(); 8 } 9 oomAfterAllocations(1, 2); 10 var x = wasmTextToBinary('(module (func (export "run") (result i32) i32.const 42))'); 11 WebAssembly.compileStreaming(x); 12 drainJobQueue();