Debian Codegraph @

js/src/jit-test/tests/sharedbuf/gc-two-views.js

raw
1 // |jit-test| skip-if: !this.SharedArrayBuffer
2
3 // Test tracing of two views of a SharedArrayBuffer. Uses a different path.
4
5 function f() {
6 var x = new SharedArrayBuffer(0x1000);
7 var y = new Int32Array(x);
8 var z = new Int8Array(x);
9 gc();
10 }
11
12 f();