Skip to content

Commit 820eb2a

Browse files
committed
Remove unnecessary arguments
1 parent 4e650c6 commit 820eb2a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

acorn/src/statement.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ pp.isLet = function(context) {
4646
if (context) return false
4747

4848
if (nextCh === 123) return true // '{'
49-
if (isIdentifierStart(nextCh, true)) {
49+
if (isIdentifierStart(nextCh)) {
5050
let start = next
5151
do { next += nextCh <= 0xffff ? 1 : 2 }
52-
while (isIdentifierChar(nextCh = this.fullCharCodeAt(next), true))
52+
while (isIdentifierChar(nextCh = this.fullCharCodeAt(next)))
5353
if (nextCh === 92) return true
5454
let ident = this.input.slice(start, next)
5555
if (!keywordRelationalOperator.test(ident)) return true
@@ -70,7 +70,7 @@ pp.isAsyncFunction = function() {
7070
return !lineBreak.test(this.input.slice(this.pos, next)) &&
7171
this.input.slice(next, next + 8) === "function" &&
7272
(next + 8 === this.input.length ||
73-
!(isIdentifierChar(after = this.fullCharCodeAt(next + 8), true) || after === 92 /* '\' */))
73+
!(isIdentifierChar(after = this.fullCharCodeAt(next + 8)) || after === 92 /* '\' */))
7474
}
7575

7676
pp.isUsingKeyword = function(isAwaitUsing, isFor) {
@@ -87,7 +87,7 @@ pp.isUsingKeyword = function(isAwaitUsing, isFor) {
8787
let usingEndPos = next + 5 /* using */, after
8888
if (this.input.slice(next, usingEndPos) !== "using" ||
8989
usingEndPos === this.input.length ||
90-
isIdentifierChar(after = this.fullCharCodeAt(usingEndPos), true) ||
90+
isIdentifierChar(after = this.fullCharCodeAt(usingEndPos)) ||
9191
after === 92 /* '\' */
9292
) return false
9393

@@ -98,10 +98,10 @@ pp.isUsingKeyword = function(isAwaitUsing, isFor) {
9898
}
9999

100100
let ch = this.fullCharCodeAt(next)
101-
if (!isIdentifierStart(ch, true) && ch !== 92 /* '\' */) return false
101+
if (!isIdentifierStart(ch) && ch !== 92 /* '\' */) return false
102102
let idStart = next
103103
do { next += ch <= 0xffff ? 1 : 2 }
104-
while (isIdentifierChar(ch = this.fullCharCodeAt(next), true))
104+
while (isIdentifierChar(ch = this.fullCharCodeAt(next)))
105105
if (ch === 92) return true
106106
let id = this.input.slice(idStart, next)
107107
if (keywordRelationalOperator.test(id) || isFor && id === "of") return false

0 commit comments

Comments
 (0)