babel-generator: Ensure ASCII-safe output for string literals (#4478)

Ref. #4477.
This commit is contained in:
Mathias Bynens
2016-09-09 00:04:52 +02:00
committed by Henry Zhu
parent e5b9c92d3d
commit b9919bdc48
4 changed files with 8 additions and 20 deletions

View File

@@ -4,6 +4,7 @@
'\x20';
"\n\r";
"😂";
`😂`;
/foobar/g;
null;
true;

View File

@@ -1 +1 @@
5;5;"foobar";" ";"\n\r";"😂";/foobar/g;null;true;false;5;2;56;31;
5;5;"foobar";" ";"\n\r";"\uD83D\uDE02";`😂`;/foobar/g;null;true;false;5;2;56;31;