Re: IDL enumeration & String.prototype.normalize

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