summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug1447996.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/basic/bug1447996.js')
-rw-r--r--js/src/jit-test/tests/basic/bug1447996.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/bug1447996.js b/js/src/jit-test/tests/basic/bug1447996.js
new file mode 100644
index 0000000000..ec7cc5a25a
--- /dev/null
+++ b/js/src/jit-test/tests/basic/bug1447996.js
@@ -0,0 +1,10 @@
+// |jit-test| skip-if: !('stackTest' in this)
+
+var x = 0;
+function f() {
+ var s = "abcdef(((((((a|b)a|b)a|b)a|b)a|b)a|b)a|b)" + x;
+ res = "abcdefa".match(new RegExp(s));
+ x++;
+}
+f();
+stackTest(f, true);