IDL enumeration & String.prototype.normalize
domenic at domenicdenicola.com
Tue Aug 6 08:50:19 PDT 2013
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`] probably needs some updating in that case:
> Indicates a numeric value has exceeded the allowable range.
More information about the es-discuss