haikuwebkit/JSTests/es6/String.prototype_methods_St...

12 lines
238 B
JavaScript

function test() {
return typeof String.prototype.normalize === "function"
&& "c\u0327\u0301".normalize("NFC") === "\u1e09"
&& "\u1e09".normalize("NFD") === "c\u0327\u0301";
}
if (!test())
throw new Error("Test failed");