Skip to content

Commit

Permalink
test String.fromCharCode() outside of BMP (#8673)
Browse files Browse the repository at this point in the history
  • Loading branch information
RealyUniqueName committed Aug 21, 2019
1 parent 40f43c9 commit e0c1286
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/unit/src/unitstd/Unicode.unit.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e0c1286

Please sign in to comment.