Explorar o código

test String.fromCharCode() outside of BMP (#8673)

Aleksandr Kuzmenko %!s(int64=6) %!d(string=hai) anos
pai
achega
e0c1286ce2
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      tests/unit/src/unitstd/Unicode.unit.hx

+ 4 - 0
tests/unit/src/unitstd/Unicode.unit.hx

@@ -11,6 +11,10 @@ s == "あ";
 s.length == 1;
 s.charCodeAt(0) == "あ".code;
 
+//outside of BMP
+var s = String.fromCharCode("𠜎".code);
+s == "𠜎";
+
 var s = "aa😂éé";
 s.indexOf(String.fromCharCode(0x80))<0;
 s.indexOf("é")==s.length-2;