Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
boweihan committed Oct 18, 2019
1 parent a782045 commit 7d82e72
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/babel-parser/src/parser/lval.js
Expand Up @@ -46,7 +46,7 @@ export default class LValParser extends NodeUtils {
): Node {
if (node) {
if (node.extra && node.extra.parenthesized) {
// any nested parenthensis means the left-hand side of the expression cannot have an assignment pattern
// any nested parenthensis invalidates left-hand assignment patterns
allowAssign = false;
}
switch (node.type) {
Expand Down
@@ -1,3 +1,3 @@
{
"throws": "Invalid assignment pattern in left-hand expression (1:3)"
}
}
@@ -1,3 +1,3 @@
{
"throws": "Invalid assignment pattern in left-hand expression (1:2)"
}
}
@@ -1,3 +1,3 @@
{
"throws": "Invalid assignment pattern in left-hand expression (1:6)"
}
}
@@ -1,3 +1,3 @@
{
"throws": "Invalid assignment pattern in left-hand expression (1:9)"
}
}

0 comments on commit 7d82e72

Please sign in to comment.