summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/sharedbuf/gc-two-views.js
blob: b130092c5afb42194da0d3120f10d2fab383aaa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Test tracing of two views of a SharedArrayBuffer. Uses a different path.

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

if (this.SharedArrayBuffer)
    f();