Re: [heycam/webidl] Disallow -0 in algorithm for checking array index (#517)

With a note saying that it's supposed to be equivalent to https://tc39.github.io/ecma262/#array-index anything would do, but using just the ≤ operator in the normative definition seems wrong. Whether operating on IEEE doubles or real numbers, positive zero equals negative zero. So it's not possible to write that expression out as-is in code or in mathematics and have -0  not be in the range.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/pull/517#issuecomment-361902690

Received on Wednesday, 31 January 2018 11:20:07 UTC