summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1286244.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/gc/bug-1286244.js')
-rw-r--r--js/src/jit-test/tests/gc/bug-1286244.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/gc/bug-1286244.js b/js/src/jit-test/tests/gc/bug-1286244.js
new file mode 100644
index 000000000..c489f95c2
--- /dev/null
+++ b/js/src/jit-test/tests/gc/bug-1286244.js
@@ -0,0 +1,16 @@
+if (typeof verifyprebarriers != 'function' ||
+ typeof offThreadCompileScript != 'function')
+ quit();
+
+try {
+ // This will fail with --no-threads.
+ verifyprebarriers();
+ var lfGlobal = newGlobal();
+ lfGlobal.offThreadCompileScript(`
+ version(185);
+ `);
+}
+catch (e) {
+ quit(0);
+}
+