// |jit-test| slow; allow-oom; skip-if: !wasmIsSupported() || !('oomTest' in this) function foo() { var g = newGlobal({sameZoneAs: this}); g.eval(`o = new WebAssembly.Instance(new WebAssembly.Module(wasmTextToBinary('(module (func) (export "" (func 0)))')));`); } oomTest(foo);