summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/bug1681597.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/warp/bug1681597.js')
-rw-r--r--js/src/jit-test/tests/warp/bug1681597.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/warp/bug1681597.js b/js/src/jit-test/tests/warp/bug1681597.js
new file mode 100644
index 0000000000..cc0d83f4b9
--- /dev/null
+++ b/js/src/jit-test/tests/warp/bug1681597.js
@@ -0,0 +1,19 @@
+// |jit-test| --fast-warmup; --no-threads
+
+function f(x) {
+ (function () {
+ (1 == (x & 0) * 1.1) + x;
+ })();
+}
+let y = [,,,2147483648,0,0];
+for (let i = 0; i < 6; i++) {
+ f(y[i]);
+ f(y[i]);
+ f(y[i]);
+ f(y[i]);
+ f(y[i]);
+ f(y[i]);
+ f(y[i]);
+ f(y[i]);
+ f(y[i]);
+}