Skip to content

Commit

Permalink
perf: skip eof and braceR check as they must return false
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Jul 1, 2019
1 parent 66f9216 commit 6bba3c9
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 @@ -2134,7 +2134,7 @@ export default class ExpressionParser extends LValParser {
if (
this.match(tt.semi) ||
(!this.match(tt.star) && !this.state.type.startsExpr) ||
this.canInsertSemicolon()
this.hasPrecedingLineBreak()
) {
node.delegate = false;
node.argument = null;
Expand Down

0 comments on commit 6bba3c9

Please sign in to comment.