Skip to content

Commit 89e5e31

Browse files
committed
Remove outdated comment
1 parent 8668505 commit 89e5e31

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

acorn/src/expression.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,12 @@ pp.checkPropClash = function(prop, propHash, refDestructuringErrors) {
4646
if (name === "__proto__" && kind === "init") {
4747
if (propHash.proto) {
4848
if (refDestructuringErrors) {
49-
if (refDestructuringErrors.doubleProto < 0)
49+
if (refDestructuringErrors.doubleProto < 0) {
5050
refDestructuringErrors.doubleProto = key.start
51-
// Backwards-compat kludge. Can be removed in version 6.0
52-
} else this.raiseRecoverable(key.start, "Redefinition of __proto__ property")
51+
}
52+
} else {
53+
this.raiseRecoverable(key.start, "Redefinition of __proto__ property")
54+
}
5355
}
5456
propHash.proto = true
5557
}

0 commit comments

Comments
 (0)