Remove unused second parameter of isIdentifierStart
This commit is contained in:
parent
4b5a284efb
commit
3b68a58e0c
@ -138,7 +138,7 @@ export default class Tokenizer {
|
|||||||
readToken(code) {
|
readToken(code) {
|
||||||
// Identifier or keyword. '\uXXXX' sequences are allowed in
|
// Identifier or keyword. '\uXXXX' sequences are allowed in
|
||||||
// identifiers, so '\' also dispatches to that.
|
// identifiers, so '\' also dispatches to that.
|
||||||
if (isIdentifierStart(code, true) || code === 92 /* '\' */) {
|
if (isIdentifierStart(code) || code === 92 /* '\' */) {
|
||||||
return this.readWord();
|
return this.readWord();
|
||||||
} else {
|
} else {
|
||||||
return this.getTokenFromCode(code);
|
return this.getTokenFromCode(code);
|
||||||
@ -722,7 +722,7 @@ export default class Tokenizer {
|
|||||||
let word = "", first = true, chunkStart = this.state.pos;
|
let word = "", first = true, chunkStart = this.state.pos;
|
||||||
while (this.state.pos < this.input.length) {
|
while (this.state.pos < this.input.length) {
|
||||||
let ch = this.fullCharCodeAtPos();
|
let ch = this.fullCharCodeAtPos();
|
||||||
if (isIdentifierChar(ch, true)) {
|
if (isIdentifierChar(ch)) {
|
||||||
this.state.pos += ch <= 0xffff ? 1 : 2;
|
this.state.pos += ch <= 0xffff ? 1 : 2;
|
||||||
} else if (ch === 92) { // "\"
|
} else if (ch === 92) { // "\"
|
||||||
this.state.containsEsc = true;
|
this.state.containsEsc = true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user