Skip to content

Commit

Permalink
refactor: remove unecessary trailing comma record
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Dec 31, 2019
1 parent 0238244 commit a432714
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion packages/babel-parser/src/parser/expression.js
Expand Up @@ -644,7 +644,7 @@ export default class ExpressionParser extends LValParser {
state.maybeAsyncArrow,
base.type === "Import",
base.type !== "Super",
node,
state.maybeAsyncArrow ? node : undefined,
);
}
this.finishCallExpression(node, state.optionalChainMember);
Expand Down
Expand Up @@ -74,9 +74,6 @@
},
"name": "fn"
},
"extra": {
"trailingComma": 11
},
"arguments": [
{
"type": "Identifier",
Expand Down
Expand Up @@ -74,9 +74,6 @@
},
"name": "fn"
},
"extra": {
"trailingComma": 7
},
"arguments": [
{
"type": "Identifier",
Expand Down
Expand Up @@ -74,9 +74,6 @@
},
"name": "log"
},
"extra": {
"trailingComma": 13
},
"arguments": [
{
"type": "Identifier",
Expand Down
Expand Up @@ -75,9 +75,6 @@
}
}
},
"extra": {
"trailingComma": 12
},
"arguments": [
{
"type": "StringLiteral",
Expand Down

0 comments on commit a432714

Please sign in to comment.