summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/exceptions/oom-create-exception-data.js
blob: 51d4558da8ad88fdf2df2518a9ce1148b516f94a (plain)
1
2
3
4
5
6
7
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);
  }
});