Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions crates/oxc_semantic/src/checker/javascript.rs
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,6 @@ pub fn check_function_declaration<'a>(
// It is a Syntax Error if IsLabelledFunction(Statement) is true.
pub fn check_function_declaration_in_labeled_statement<'a>(
body: &Statement<'a>,

ctx: &SemanticBuilder<'a>,
) {
if let Statement::FunctionDeclaration(decl) = body {
Expand All @@ -509,7 +508,6 @@ pub fn check_function_declaration_in_labeled_statement<'a>(
| AstKind::DoWhileStatement(_)
| AstKind::WithStatement(_)
| AstKind::IfStatement(_) => break,

_ => return,
}
}
Expand Down
Loading