Skip to content

Commit

Permalink
feat(read-string): support \u \x \b ...
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanfang committed Apr 15, 2021
1 parent 4db2809 commit 404443b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parser/read-string.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var ExprType = require('./expr-type');
*/
function readString(walker) {
var startCode = walker.currentCode();
var value = '';
var value = "";
var charCode;

walkLoop: while ((charCode = walker.nextCode())) {
Expand Down Expand Up @@ -76,7 +76,7 @@ function readString(walker) {
return {
type: ExprType.STRING,
// 处理字符转义
value
value: value
};
}

Expand Down

0 comments on commit 404443b

Please sign in to comment.