summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/bug1694600.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/warp/bug1694600.js')
-rw-r--r--js/src/jit-test/tests/warp/bug1694600.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/warp/bug1694600.js b/js/src/jit-test/tests/warp/bug1694600.js
new file mode 100644
index 0000000000..7a0ee06343
--- /dev/null
+++ b/js/src/jit-test/tests/warp/bug1694600.js
@@ -0,0 +1,16 @@
+function foo(fn, y) {
+ var dummy = y > 0 ? 1 : 2;
+ fn();
+ return y * y;
+}
+
+function nop() {}
+function throws() { throw 1; }
+
+with ({}) {}
+for (var i = 0; i < 100; i++) {
+ foo(nop, 0)
+ try {
+ foo(throws, 0x7fffffff)
+ } catch {}
+}