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.js11
1 files changed, 11 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 0000000000..03f1dddf8c
--- /dev/null
+++ b/js/src/jit-test/tests/sharedbuf/gc-one-view.js
@@ -0,0 +1,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();