fix: update chunkStart on missing unicode escape (#13261)

This commit is contained in:
Huáng Jùnliàng
2021-05-06 08:31:11 -04:00
committed by GitHub
parent 9440318309
commit 278193b6f7
6 changed files with 7 additions and 32 deletions

View File

@@ -1462,6 +1462,7 @@ export default class Tokenizer extends ParserErrors {
if (this.input.charCodeAt(++this.state.pos) !== charCodes.lowercaseU) {
this.raise(this.state.pos, Errors.MissingUnicodeEscape);
chunkStart = this.state.pos - 1;
continue;
}