summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/exceptions/oom-create-exception-data.js
blob: 0aa1e756984a4f826c0704504b317927d3c09342 (plain)
1
2
3
4
5
6
7
8
9
// |jit-test| skip-if: !('oomTest' in this)

const tag = new WebAssembly.Tag({ parameters: ["i32", "i32", "i32", "i32"] });
const params = [0, 0, 0, 0];
oomTest(() => {
  for (var i = 0; i < 5; ++i) {
    new WebAssembly.Exception(tag, params);
  }
});