summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/regress/bug1727284/test.js
blob: 54d7350be9ce860ab5725eb443e15b6352a630a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function test() {
  let instance = wasmEvalText(`
    (module
      (global $g (mut externref) (ref.null extern))
      (func (export "set") (param externref) local.get 0 global.set $g)
    )
  `).exports;
  let obj = { field: null };
  instance.set(obj);
  for (var v4 = 0; v4 < 10; v4++) {}
}
test();