Skip to content

Commit

Permalink
Fix for bug oracle#86
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktor Polishchuk committed Dec 21, 2018
1 parent 3e0ebb9 commit 543c53b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5108,7 +5108,7 @@ private Expression assignmentExpression(boolean in, boolean yield, boolean await
}
}
} else {
if (!inPatternPosition && hasCoverInitializedName(exprLhs)) {
if (!inPatternPosition && hasCoverInitializedName(exprLhs) && !isDestructuringLhs(exprLhs)) {
throw error(AbstractParser.message("invalid.property.initializer"));
}
return exprLhs;
Expand Down

0 comments on commit 543c53b

Please sign in to comment.