Skip to content

Commit 27781e4

Browse files
committed
Remove unnecessary test
1 parent 2dded4b commit 27781e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

acorn/src/expression.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ pp.parseNew = function() {
719719
}
720720
let startPos = this.start, startLoc = this.startLoc
721721
node.callee = this.parseSubscripts(this.parseExprAtom(null, false, true), startPos, startLoc, true, false)
722-
if (node.callee.type === "Super" && node.callee.start === startPos)
722+
if (node.callee.type === "Super")
723723
this.raiseRecoverable(startPos, "Invalid use of 'super'")
724724
if (this.eat(tt.parenL)) node.arguments = this.parseExprList(tt.parenR, this.options.ecmaVersion >= 8, false)
725725
else node.arguments = empty

0 commit comments

Comments
 (0)