blob: c1c3882cc236f2f2a097678699e5ec7471909aca [file] [log] [blame]
var BUGNUMBER = 918987;
var summary = 'String.prototype.normalize - normalize no String object';
print(BUGNUMBER + ": " + summary);
function test() {
var myobj = {
toString: () => "a\u0301",
normalize: String.prototype.normalize
};
assertEq(myobj.normalize(), "\u00E1");
}
if ("normalize" in String.prototype) {
// String.prototype.normalize is not enabled in all builds.
test();
}
if (typeof reportCompare === "function")
reportCompare(true, true);