- From: Domenic Denicola <notifications@github.com>
- Date: Sat, 11 Feb 2017 11:51:35 -0800
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Saturday, 11 February 2017 19:52:36 UTC
[EnforceRange] will throw a TypeError > If x < lowerBound or x > upperBound, then throw a TypeError. If lowerBound is 0 and x is -0, will this throw? Note that `-0 < 0` is false in JavaScript. The answer might be well-defined by ECMAScript conventions, but we should check that it is, and in any case we should add a note about this explicit case. Note that the [Clamp] and no-extended-attribute cases don't have this problem as they explicitly censor -0 to 0. Although I guess clamp is a bit ambiguous, if "round -0 to the nearest integer choosing 0 instead of -0" will in fact change -0 to 0. -- 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/issues/306
Received on Saturday, 11 February 2017 19:52:36 UTC