Skip to content

Commit

Permalink
fix flow errors
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Jan 17, 2020
1 parent ddc7604 commit 6b2c9e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-parser/src/parser/expression.js
Expand Up @@ -353,7 +353,7 @@ export default class ExpressionParser extends LValParser {
} else if (coalesce) {
// Handle the precedence of `tt.coalesce` as equal to the range of logical expressions.
// In other words, `node.right` shouldn't contain logical expressions in order to check the mixed error.
prec = tt.logicalAND.binop;
prec = ((tt.logicalAND: any): { binop: number }).binop;
}

this.next();
Expand Down

0 comments on commit 6b2c9e8

Please sign in to comment.