blob: 738a2185736eea08d578f0f7feccec9dbc9252aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// |jit-test| slow; allow-oom
if (typeof oomTest !== 'function' || !wasmIsSupported()) {
print('Missing oomTest or wasm support in wasm/regress/oom-eval');
quit();
}
function foo() {
var g = newGlobal();
g.eval(`o = new WebAssembly.Instance(new WebAssemby.Module(wasmTextToBinary('(module (func) (export "" 0))')));`);
}
oomTest(foo);
|