michael@0: function isNegZero(x) { michael@0: return x===0 && (1/x)===-Infinity; michael@0: } michael@0: michael@0: try { michael@0: for (y = 0; y < 1; y++) { michael@0: x = y; michael@0: } michael@0: } catch (e) {} michael@0: michael@0: function f() { michael@0: (x /= -9) michael@0: } michael@0: f() michael@0: assertEq(isNegZero(this.x), true);