summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug886246.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/ion/bug886246.js')
-rw-r--r--js/src/jit-test/tests/ion/bug886246.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/ion/bug886246.js b/js/src/jit-test/tests/ion/bug886246.js
new file mode 100644
index 000000000..ab6144edd
--- /dev/null
+++ b/js/src/jit-test/tests/ion/bug886246.js
@@ -0,0 +1,11 @@
+function f(x)
+{
+ x = x|0;
+ return ~~((x ? 1.0e60 : 1.0e60) + 1.0);
+}
+
+var r = -1;
+for(var i = 0; i < 20000; i++) {
+ r = f();
+}
+assertEq(r, 0);