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

Re: IDL enumeration & String.prototype.normalize

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 06 Aug 2013 13:43:32 -0400
Message-ID: <520135C4.4030703@mit.edu>
To: public-script-coord@w3.org
On 8/6/13 11:50 AM, Domenic Denicola wrote:
> It would be nice if IDL enums followed ES semantics, of doing `ToString(value)`

They already do.

> and then throwing a `RangeError` if outside the allowed range.

That's what this thread is about.  Right now IDL enums throw a TypeError 
if after ToString() the result is not one of the enumeration's values.

-Boris
Received on Tuesday, 6 August 2013 17:44:00 UTC

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