Revert "Parenthesized expressions (#8025)"
This reverts commit dd8b700a2c.
This commit is contained in:
committed by
Nicolò Ribaudo
parent
9f3457797f
commit
fc1ea7f496
@@ -92,14 +92,6 @@ export default class LValParser extends NodeUtils {
|
||||
}
|
||||
break;
|
||||
|
||||
case "ParenthesizedExpression":
|
||||
node.expression = this.toAssignable(
|
||||
node.expression,
|
||||
isBinding,
|
||||
contextDescription,
|
||||
);
|
||||
break;
|
||||
|
||||
case "MemberExpression":
|
||||
if (!isBinding) break;
|
||||
|
||||
@@ -415,15 +407,6 @@ export default class LValParser extends NodeUtils {
|
||||
this.checkLVal(expr.argument, isBinding, checkClashes, "rest element");
|
||||
break;
|
||||
|
||||
case "ParenthesizedExpression":
|
||||
this.checkLVal(
|
||||
expr.expression,
|
||||
isBinding,
|
||||
checkClashes,
|
||||
"parenthesized expression",
|
||||
);
|
||||
break;
|
||||
|
||||
default: {
|
||||
const message =
|
||||
(isBinding
|
||||
|
||||
Reference in New Issue
Block a user