blob: 1ce7c26df1fd7b85cd71de70acf12a9ab429fac9 (
plain)
1
2
3
4
5
6
7
|
// |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);
|