IDL enumeration & String.prototype.normalize
Anne van Kesteren
annevk at annevk.nl
Tue Aug 6 07:59:29 PDT 2013
In IDL not being part of an enumeration throws TypeError. It seems
String.prototype.normalize uses RangeError. I've no preference as to
which is better, but it would be good if they were equal.
Also, throughout the platform we typically lowercase enumeration
constants, e.g. "arraybuffer". I think it would be good for
String.prototype.normalize to follow that precedent and use "nfc" etc.
(I was a bit surprised to see Unicode normalization exposed here.
We've been pretty hesitant elsewhere to introduce dependencies on it,
but I guess at this level it might be okay.)
More information about the es-discuss