diff --git a/crates/oxc_ast/src/ast_builder.rs b/crates/oxc_ast/src/ast_builder.rs index 8702ab698e6c4..3a57013355178 100644 --- a/crates/oxc_ast/src/ast_builder.rs +++ b/crates/oxc_ast/src/ast_builder.rs @@ -280,7 +280,7 @@ impl<'a> AstBuilder<'a> { #[inline] pub fn block_statement(self, block: Box<'a, BlockStatement<'a>>) -> Statement<'a> { - Statement::BlockStatement(self.block(block.span, block.unbox().body)) + Statement::BlockStatement(block) } #[inline]