comparison: js/src/jit-test/tests/sharedbuf/gc-two-views.js
js/src/jit-test/tests/sharedbuf/gc-two-views.js
- branch
- TOR_BUG_9701
- changeset 15
- b8a032363ba2
equal
deleted
inserted
replaced
|
1 // Test tracing of two views of a SharedArrayBuffer. Uses a different path. |
|
2 |
|
3 function f() { |
|
4 var x = new SharedArrayBuffer(0x1000); |
|
5 var y = new Int32Array(x); |
|
6 var z = new Int8Array(x); |
|
7 gc(); |
|
8 } |
|
9 |
|
10 if (typeof SharedArrayBuffer !== "undefined") |
|
11 f(); |