haikuwebkit/JSTests/es6/destructuring_with_astral_p...

12 lines
125 B
JavaScript

function test() {
var c;
[c] = "𠮷𠮶";
return c === "𠮷";
}
if (!test())
throw new Error("Test failed");