summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/regress/bug1713581.js
blob: a7201ccb225e07ee6a73ff0a8041ec7db4896497 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function wasmEvalText(str, imports, options) {
  let binary = wasmTextToBinary(str);
  m = new WebAssembly.Module(binary, options);
  return new WebAssembly.Instance(m, imports);
}
let ins = wasmEvalText(`
  (module
    (func (export "fill0") (param $r externref))
  )
`);
for (let i53 = 0; i53 < 1000; i53++) {
  ins.exports.fill0("hello")
}