``` javascript var foo = `["m",9536]`; ``` Emits ``` javascript var foo = "[\"m\",\u0039536]"; // ? ``` I came across this by pasting JSON into a template string. Whats '\u003' ?
Activity
DanielRosenwasser commentedon Feb 26, 2015
Good news! That's actually
\u0039, which is ASCII9, so this is technically not wrong.Bad news: our escaping is broken for cases like this. I'll have a fix out in a bit.
jbondc commentedon Feb 26, 2015
:) Found fix in
core.ts
var escapedCharsRegExp = /[\0-\x19\t\v\f\b\0\r\n\u2028\u2029\u0085]/g;
DanielRosenwasser commentedon Feb 26, 2015
Yup, correcting it now.