diff options
Diffstat (limited to 'js/src/jit-test/tests/warp/bug1708839.js')
-rw-r--r-- | js/src/jit-test/tests/warp/bug1708839.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/warp/bug1708839.js b/js/src/jit-test/tests/warp/bug1708839.js new file mode 100644 index 0000000000..93d5c5622e --- /dev/null +++ b/js/src/jit-test/tests/warp/bug1708839.js @@ -0,0 +1,16 @@ +function f(a) { + let m = new Uint32Array([-1]); + let h = m[0]; + let r = m[0]; + if (a) { + h = undefined; + r = 0xff; + } + return h > r; +}; + +assertEq(f(false), false); +for (let i = 0; i < 100; ++i) { + f(true); +} +assertEq(f(false), false); |