summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/bug1699056.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/warp/bug1699056.js')
-rw-r--r--js/src/jit-test/tests/warp/bug1699056.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/warp/bug1699056.js b/js/src/jit-test/tests/warp/bug1699056.js
new file mode 100644
index 0000000000..cb16a5ffc2
--- /dev/null
+++ b/js/src/jit-test/tests/warp/bug1699056.js
@@ -0,0 +1,12 @@
+var a = '';
+var b = '';
+
+function foo() {
+ a += 'x';
+ b = b + a;
+}
+
+with ({}) {}
+for (var i = 0; i < 50000; i++) {
+ try { foo() } catch {}
+}