summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/bug1669597.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/warp/bug1669597.js')
-rw-r--r--js/src/jit-test/tests/warp/bug1669597.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/warp/bug1669597.js b/js/src/jit-test/tests/warp/bug1669597.js
new file mode 100644
index 0000000000..c4110c581f
--- /dev/null
+++ b/js/src/jit-test/tests/warp/bug1669597.js
@@ -0,0 +1,14 @@
+// |jit-test| --fast-warmup
+var str = '';
+function g(x) {
+ with(this) {} // Don't inline.
+ return x;
+}
+function f() {
+ var x = 0;
+ for (var i = 0; i < 100; i++) {
+ x += +g(+str);
+ }
+ return x;
+}
+assertEq(f(), 0);