Skip to content

Commit

Permalink
refactor: remove unecessary checkYieldAwaitInDefaultParams (#10936)
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Dec 30, 2019
1 parent 2f3f779 commit 0238244
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/babel-parser/src/parser/expression.js
Expand Up @@ -1821,7 +1821,6 @@ export default class ExpressionParser extends LValParser {
(allowDirectSuper ? SCOPE_DIRECT_SUPER : 0),
);
this.parseFunctionParams((node: any), allowModifiers);
this.checkYieldAwaitInDefaultParams();
this.parseFunctionBodyAndFinish(node, type, true);
this.scope.exit();

Expand Down

0 comments on commit 0238244

Please sign in to comment.