summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1259490.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--js/src/jit-test/tests/gc/bug-1259490.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/gc/bug-1259490.js b/js/src/jit-test/tests/gc/bug-1259490.js
new file mode 100644
index 0000000000..d349bf27d4
--- /dev/null
+++ b/js/src/jit-test/tests/gc/bug-1259490.js
@@ -0,0 +1,13 @@
+try { eval("3 ** 4") } catch (e) {
+ if (!(e instanceof SyntaxError))
+ throw e;
+ quit();
+}
+eval(`
+
+gczeal(8);
+for (var k = 0; k < 99; ++k) {
+ String(-(0 ** (Object | 0 * Object)))
+}
+
+`)