diff -r 000000000000 -r 6474c204b198 js/src/jit-test/tests/ion/bug862100.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/js/src/jit-test/tests/ion/bug862100.js Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,14 @@ + +function TestCase(n, d, e, a) {} +function reportCompare (expected, actual, description) { + new TestCase("", description, expected, actual); +} +new TestCase( "", "", 0, Number(new Number()) ); +reportCompare(true, true); +evaluate("\ +function TestCase(n, d, e, a) {}\ +test_negation(-2147483648, 2147483648);\ +test_negation(2147483647, -2147483647);\ +function test_negation(value, expected)\ + reportCompare(expected, '', '-(' + value + ') == ' + expected);\ +");