summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/regress/bug1891658.js
blob: 304ea0f5ea22e1c29a2cfd1a37774a581992a4dd (plain)
1
2
3
4
5
6
7
8
9
10
// Tests OOM during wasmLosslessInvoke.

var ins = wasmEvalText('(module (func (export "f")(result i32) i32.const 1))');

oomAtAllocation(1);
try {
  wasmLosslessInvoke(ins.exports.f);
} catch (e) {
  assertEq(e, "out of memory");
}