diff options
Diffstat (limited to 'deps/v8/test/mjsunit/smi-ops.js')
-rw-r--r-- | deps/v8/test/mjsunit/smi-ops.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/deps/v8/test/mjsunit/smi-ops.js b/deps/v8/test/mjsunit/smi-ops.js index 8fa6fec60..7945855f3 100644 --- a/deps/v8/test/mjsunit/smi-ops.js +++ b/deps/v8/test/mjsunit/smi-ops.js @@ -699,3 +699,6 @@ assertEquals(24, LeftShiftThreeBy(-29)); // allocations we got the Smi overflow case wrong. function f(x, y) { return y + ( 1 << (x & 31)); } assertEquals(-2147483647, f(31, 1)); + +// Regression test for correct handling of overflow in smi comparison. +assertTrue(-0x40000000 < 42); |