We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35aefca commit d4b7b02Copy full SHA for d4b7b02
src/parse.js
@@ -178,7 +178,9 @@ export class CellParser extends Parser {
178
// (But not an object expression or arrow function!)
179
if (token.type === tt.parenL) {
180
id = this.parseParenAndDistinguishExpression(true);
181
- if (id.type === "ArrowFunctionExpression" || !this.eat(tt.eq)) {
+ if (id.type !== "ArrowFunctionExpression" && this.eat(tt.eq)) {
182
+ id = this.toAssignable(id, true);
183
+ } else {
184
body = id;
185
id = null;
186
}
0 commit comments