Skip to content

Commit

Permalink
tweak: remove default parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Nov 26, 2022
1 parent 18eebaa commit af3af8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/babel-parser/src/parser/statement.ts
Expand Up @@ -381,7 +381,7 @@ export default abstract class StatementParser extends ExpressionParser {

parseStatementOrFunctionDeclaration(
this: Parser,
disallowLabeledFunction: boolean = false,
disallowLabeledFunction: boolean,
) {
return this.parseStatementLike(
ParseStatementFlag.AllowFunctionDeclaration |
Expand Down Expand Up @@ -1248,7 +1248,7 @@ export default abstract class StatementParser extends ExpressionParser {
// https://tc39.es/ecma262/#prod-LabelledItem
node.body =
flags & ParseStatementFlag.AllowLabeledFunction
? this.parseStatementOrFunctionDeclaration()
? this.parseStatementOrFunctionDeclaration(false)
: this.parseStatement();

this.state.labels.pop();
Expand Down

0 comments on commit af3af8f

Please sign in to comment.