Skip to content

Commit 0ee7596

Browse files
committed
Rename confusing variable name
1 parent ad66d00 commit 0ee7596

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

acorn/src/statement.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,17 +84,17 @@ pp.isUsingKeyword = function(isAwaitUsing, isFor) {
8484
if (lineBreak.test(this.input.slice(this.pos, next))) return false
8585

8686
if (isAwaitUsing) {
87-
let awaitEndPos = next + 5 /* await */, after
88-
if (this.input.slice(next, awaitEndPos) !== "using" ||
89-
awaitEndPos === this.input.length ||
90-
isIdentifierChar(after = this.input.charCodeAt(awaitEndPos)) ||
87+
let usingEndPos = next + 5 /* using */, after
88+
if (this.input.slice(next, usingEndPos) !== "using" ||
89+
usingEndPos === this.input.length ||
90+
isIdentifierChar(after = this.input.charCodeAt(usingEndPos)) ||
9191
(after > 0xd7ff && after < 0xdc00)
9292
) return false
9393

94-
skipWhiteSpace.lastIndex = awaitEndPos
94+
skipWhiteSpace.lastIndex = usingEndPos
9595
let skipAfterUsing = skipWhiteSpace.exec(this.input)
96-
next = awaitEndPos + skipAfterUsing[0].length
97-
if (skipAfterUsing && lineBreak.test(this.input.slice(awaitEndPos, next))) return false
96+
next = usingEndPos + skipAfterUsing[0].length
97+
if (skipAfterUsing && lineBreak.test(this.input.slice(usingEndPos, next))) return false
9898
}
9999

100100
let ch = this.fullCharCodeAt(next)

0 commit comments

Comments
 (0)