Skip to content

Commit d4b7b02

Browse files
committed
Convert to assignable.
1 parent 35aefca commit d4b7b02

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/parse.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,9 @@ export class CellParser extends Parser {
178178
// (But not an object expression or arrow function!)
179179
if (token.type === tt.parenL) {
180180
id = this.parseParenAndDistinguishExpression(true);
181-
if (id.type === "ArrowFunctionExpression" || !this.eat(tt.eq)) {
181+
if (id.type !== "ArrowFunctionExpression" && this.eat(tt.eq)) {
182+
id = this.toAssignable(id, true);
183+
} else {
182184
body = id;
183185
id = null;
184186
}

0 commit comments

Comments
 (0)