Re:Testing for -0 (negative zero) in JavaScript
by pilif on Thursday February 17, 2011 @01:48AM
(#2230106)
What concerns me about the ES5 solution is that with freeze, apparently we got yet another different way to evaluate equality.
if(value) behaves differently from if (value == true), behaves differently from if (value === true), which again behaves differently from that check in freeze.
IMHO, that freeze check should have behaved the same as ===, so the proposed solution should not have worked.
if(value) behaves differently from if (value == true), behaves differently from if (value === true), which again behaves differently from that check in freeze.
IMHO, that freeze check should have behaved the same as ===, so the proposed solution should not have worked.
Oh well.