W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2013

Re: IDL enumeration & String.prototype.normalize

From: Rick Waldron <waldron.rick@gmail.com>
Date: Tue, 6 Aug 2013 13:24:10 -0400
Message-ID: <CAHfnhfrZzG8_1hVfyfRFM_CaU+sR_FYvT-XVpe5jof8odQ5dtg@mail.gmail.com>
To: Domenic Denicola <domenic@domenicdenicola.com>
Cc: Anne van Kesteren <annevk@annevk.nl>, Allen Wirfs-Brock <allen@wirfs-brock.com>, "public-script-coord@w3.org" <public-script-coord@w3.org>, es-discuss <es-discuss@mozilla.org>
On Tue, Aug 6, 2013 at 11:50 AM, Domenic Denicola <
domenic@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
Received on Tuesday, 6 August 2013 17:24:57 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:37:50 UTC