summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/sharedbuf/gc-one-view.js
blob: 65a44d0223244bef10e27ccfec30ce58559ca149 (plain)
1
2
3
4
5
6
7
8
9
10
// Test tracing of a single linked ArrayBufferViewObject.

function f() {
    var x = new SharedArrayBuffer(0x1000);
    var y = new Int32Array(x);
    gc();
}

if (this.SharedArrayBuffer)
    f();