Skip to content

Commit bc76e30

Browse files
committed
Return char for invalid escapes
1 parent 60ceb41 commit bc76e30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lex.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export function lex(s: string): Lexer {
118118
case CharCodes.doubleQuote:
119119
return '"';
120120
default:
121-
return '';
121+
return String.fromCharCode(char);
122122
}
123123
}
124124
}

0 commit comments

Comments
 (0)