diff options
Diffstat (limited to 'js/src/jit-test/tests/warp/bug1738676.js')
-rw-r--r-- | js/src/jit-test/tests/warp/bug1738676.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/warp/bug1738676.js b/js/src/jit-test/tests/warp/bug1738676.js new file mode 100644 index 0000000000..0d9e8fa568 --- /dev/null +++ b/js/src/jit-test/tests/warp/bug1738676.js @@ -0,0 +1,19 @@ +function verify(n) { + with ({}) {} + assertEq(n, -0); +} + +function main() { + let x; + let arr = []; + + let i = 0; + do { + x = (256 - i) * 0; + arr[x] = 0; + i++ + } while (i < 512); + verify(x); +} + +main(); |