summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1766648-markQueue.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/gc/bug-1766648-markQueue.js')
-rw-r--r--js/src/jit-test/tests/gc/bug-1766648-markQueue.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/gc/bug-1766648-markQueue.js b/js/src/jit-test/tests/gc/bug-1766648-markQueue.js
new file mode 100644
index 0000000000..bd5cb693e2
--- /dev/null
+++ b/js/src/jit-test/tests/gc/bug-1766648-markQueue.js
@@ -0,0 +1,12 @@
+if (this.enqueueMark) {
+ enqueueMark('set-color-gray');
+ enqueueMark('set-color-black');
+ enqueueMark(newGlobal());
+ enqueueMark('set-color-gray');
+ enqueueMark('set-color-black');
+ enqueueMark(newGlobal());
+ enqueueMark('set-color-gray');
+ enqueueMark('set-color-black');
+ enqueueMark(newGlobal());
+ gc();
+}