summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/sharedbuf/gc-one-view.js
blob: 03f1dddf8c458a09274b15b767ff8c21e8e60fb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
// |jit-test| skip-if: !this.SharedArrayBuffer

// Test tracing of a single linked ArrayBufferViewObject.

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

f();