mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
refactor(ast): reduce allocations in AST builder (#3834)
No need to unbox and then box again.
This commit is contained in:
parent
ff1da27278
commit
120696741c
1 changed files with 1 additions and 1 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue