1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/ion/bug831087.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,15 @@ 1.4 +function isNegZero(x) { 1.5 + return x===0 && (1/x)===-Infinity; 1.6 +} 1.7 + 1.8 +try { 1.9 + for (y = 0; y < 1; y++) { 1.10 + x = y; 1.11 + } 1.12 +} catch (e) {} 1.13 + 1.14 +function f() { 1.15 + (x /= -9) 1.16 +} 1.17 +f() 1.18 +assertEq(isNegZero(this.x), true);