summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testUndemotableBinaryOp.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/basic/testUndemotableBinaryOp.js')
-rw-r--r--js/src/jit-test/tests/basic/testUndemotableBinaryOp.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/testUndemotableBinaryOp.js b/js/src/jit-test/tests/basic/testUndemotableBinaryOp.js
new file mode 100644
index 000000000..6fd79cda0
--- /dev/null
+++ b/js/src/jit-test/tests/basic/testUndemotableBinaryOp.js
@@ -0,0 +1,6 @@
+function testUndemotableBinaryOp() {
+ var out = [];
+ for (let j = 0; j < 5; ++j) { out.push(6 - ((void 0) ^ 0x80000005)); }
+ return out.join(",");
+}
+assertEq(testUndemotableBinaryOp(), "2147483649,2147483649,2147483649,2147483649,2147483649");