Skip to content

Commit

Permalink
maintained unicode in string literals
Browse files Browse the repository at this point in the history
  • Loading branch information
westoque committed Mar 12, 2012
1 parent 7d82d3c commit d5e34c2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion esprima.js
Expand Up @@ -938,7 +938,6 @@ parseStatement: true, parseSourceElement: true */
case 't':
str += '\t';
break;
case 'u':
case 'x':
restore = index;
unescaped = scanHexEscape(ch);
Expand All @@ -949,6 +948,9 @@ parseStatement: true, parseSourceElement: true */
str += ch;
}
break;
case 'u':
str += '\\u';
break;
case 'b':
str += '\b';
break;
Expand Down Expand Up @@ -4449,6 +4451,8 @@ parseStatement: true, parseSourceElement: true */

exports.modify = modify;

exports.traverse = traverse;

exports.generate = generate;

exports.Tracer = {
Expand Down

0 comments on commit d5e34c2

Please sign in to comment.