summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug984766.js
blob: bd44fc31bc842e8f71d90d57196de54219bbfde9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

for (var i = 0; i < 10; i++) {
  x = new ArrayBuffer(4)
  x.f = (function() {})
  new Uint16Array(x).set(JSON.parse)
  gcslice()
}

if (!this.SharedArrayBuffer)
  quit(0);

for (var i = 0; i < 10; i++) {
  x = new SharedArrayBuffer(4)
  x.f = (function() {})
  new Uint16Array(x).set(JSON.parse)
  gcslice()
}