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