IDL enumeration & String.prototype.normalize

Rick Waldron waldron.rick at gmail.com
Tue Aug 6 10:24:10 PDT 2013


On Tue, Aug 6, 2013 at 11:50 AM, Domenic Denicola <
domenic at domenicdenicola.com> wrote:

> Right, I think both are indeed enums at some conceptual level. IDL gives
> that concept a name; ES does not. It would be nice if IDL enums followed ES
> semantics, of doing `ToString(value)` (which may throw a `TypeError`) and
> then throwing a `RangeError` if outside the allowed range.
>
> However, the [definition of `RangeError`][1] probably needs some updating
> in that case:
>
> > Indicates a numeric value has exceeded the allowable range.
>

Can you file a bug here:
https://bugs.ecmascript.org/enter_bug.cgi?product=Draft%20for%206th%20Edition

Thanks!

Rick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130806/64b90e57/attachment-0001.html>


More information about the es-discuss mailing list