IDL enumeration & String.prototype.normalize

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.)


-- 
http://annevankesteren.nl/

Received on Tuesday, 6 August 2013 14:59:56 UTC