Debian Codegraph @

js/src/jit-test/tests/wasm/regress/bug1891658.js

raw
1 // Tests OOM during wasmLosslessInvoke.
2
3 var ins = wasmEvalText('(module (func (export "f")(result i32) i32.const 1))');
4
5 oomAtAllocation(1);
6 try {
7 wasmLosslessInvoke(ins.exports.f);
8 } catch (e) {
9 assertEq(e, "out of memory");
10 }