blob: 4831c27176c04af220aacfc04baf037a34c5070e [file] [log] [blame]
var BUGNUMBER = 918987;
var summary = 'String.prototype.normalize - passing wrong parameter';
print(BUGNUMBER + ": " + summary);
function test() {
assertThrowsInstanceOf(() => "abc".normalize("NFE"), RangeError,
"String.prototype.normalize should raise RangeError on invalid form");
assertEq("".normalize(), "");
}
if ("normalize" in String.prototype) {
// String.prototype.normalize is not enabled in all builds.
test();
}
if (typeof reportCompare === "function")
reportCompare(true, true);