Skip to content

Commit

Permalink
Remove outdated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Nov 9, 2021
1 parent 8668505 commit 89e5e31
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions acorn/src/expression.js
Expand Up @@ -46,10 +46,12 @@ pp.checkPropClash = function(prop, propHash, refDestructuringErrors) {
if (name === "__proto__" && kind === "init") {
if (propHash.proto) {
if (refDestructuringErrors) {
if (refDestructuringErrors.doubleProto < 0)
if (refDestructuringErrors.doubleProto < 0) {
refDestructuringErrors.doubleProto = key.start
// Backwards-compat kludge. Can be removed in version 6.0
} else this.raiseRecoverable(key.start, "Redefinition of __proto__ property")
}
} else {
this.raiseRecoverable(key.start, "Redefinition of __proto__ property")
}
}
propHash.proto = true
}
Expand Down

0 comments on commit 89e5e31

Please sign in to comment.