diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/jit-test/tests/warp/bug1706314.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/warp/bug1706314.js b/js/src/jit-test/tests/warp/bug1706314.js new file mode 100644 index 0000000000..210f827a2a --- /dev/null +++ b/js/src/jit-test/tests/warp/bug1706314.js @@ -0,0 +1,9 @@ +function f(a,b) { + var o1 = {x: 1}; + var o2 = {x: 1}; + for (var i = 0; i < 100; i++) { + var res = a ? (b ? o1 : o2) : null; + assertEq(res, o1); + } +} +f(true, true); |