diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/jit-test/tests/warp/bug1745949.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/warp/bug1745949.js b/js/src/jit-test/tests/warp/bug1745949.js new file mode 100644 index 0000000000..0047afe7c5 --- /dev/null +++ b/js/src/jit-test/tests/warp/bug1745949.js @@ -0,0 +1,11 @@ +function foo() { + let v; + let i = -2000; + do { + v = i * -1; + v += v; + i++; + } while (i < 1); + return Object.is(v, -0); +} +assertEq(foo(), true); |