refactor: remove unecessary checkYieldAwaitInDefaultParams (#10936)

This commit is contained in:
Huáng Jùnliàng 2019-12-30 16:12:09 -05:00 committed by GitHub
parent 2f3f77926d
commit 0238244268
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();