summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/subCommutativity.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/jaeger/subCommutativity.js')
-rw-r--r--js/src/jit-test/tests/jaeger/subCommutativity.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/jaeger/subCommutativity.js b/js/src/jit-test/tests/jaeger/subCommutativity.js
new file mode 100644
index 0000000000..89885c27a8
--- /dev/null
+++ b/js/src/jit-test/tests/jaeger/subCommutativity.js
@@ -0,0 +1,4 @@
+assertEq(6 - ((void 0) ^ 0x80000005), 2147483649);
+
+var x = ((void 0) ^ 0x80000005);
+assertEq(6 - x, 2147483649);