summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/sharedbuf/gc-one-view.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/sharedbuf/gc-one-view.js')
-rw-r--r--js/src/jit-test/tests/sharedbuf/gc-one-view.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/sharedbuf/gc-one-view.js b/js/src/jit-test/tests/sharedbuf/gc-one-view.js
new file mode 100644
index 000000000..65a44d022
--- /dev/null
+++ b/js/src/jit-test/tests/sharedbuf/gc-one-view.js
@@ -0,0 +1,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();