[Babel 8] Remove optional field from MemberExpression (#13407)
This commit is contained in:
parent
92bca21011
commit
176bc24312
@ -99,8 +99,6 @@ export default declare(api => {
|
||||
t.memberExpression(
|
||||
t.cloneNode(receiverLVal),
|
||||
node.callee.property,
|
||||
false,
|
||||
false,
|
||||
),
|
||||
),
|
||||
...argsInitializers,
|
||||
@ -114,8 +112,6 @@ export default declare(api => {
|
||||
t.memberExpression(
|
||||
t.cloneNode(functionLVal),
|
||||
t.identifier("call"),
|
||||
false,
|
||||
false,
|
||||
),
|
||||
[t.cloneNode(receiverLVal), ...args],
|
||||
),
|
||||
|
||||
@ -641,7 +641,12 @@ defineType("LogicalExpression", {
|
||||
});
|
||||
|
||||
defineType("MemberExpression", {
|
||||
builder: ["object", "property", "computed", "optional"],
|
||||
builder: [
|
||||
"object",
|
||||
"property",
|
||||
"computed",
|
||||
...(!process.env.BABEL_TYPES_8_BREAKING ? ["optional"] : []),
|
||||
],
|
||||
visitor: ["object", "property"],
|
||||
aliases: ["Expression", "LVal"],
|
||||
fields: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user