blob: c1c3882cc236f2f2a097678699e5ec7471909aca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
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);
|