Skip to content

Commit

Permalink
@babel/types: update OptionalCallExpression to support ArgumentPlaceh…
Browse files Browse the repository at this point in the history
…older (babel#12418)
  • Loading branch information
zxbodya authored and nicolo-ribaudo committed Dec 2, 2020
1 parent 215c33d commit b6002d7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/babel-types/src/definitions/core.js
Expand Up @@ -1998,7 +1998,12 @@ defineType("OptionalCallExpression", {
validate: chain(
assertValueType("array"),
assertEach(
assertNodeType("Expression", "SpreadElement", "JSXNamespacedName"),
assertNodeType(
"Expression",
"SpreadElement",
"JSXNamespacedName",
"ArgumentPlaceholder",
),
),
),
},
Expand Down

0 comments on commit b6002d7

Please sign in to comment.