Skip to content

Commit

Permalink
refactor(ast): AstBuilder::move_identifier_reference do not allocat…
Browse files Browse the repository at this point in the history
…e empty string
  • Loading branch information
overlookmotel committed Aug 19, 2024
1 parent 64ace42 commit bdee72e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/oxc_ast/src/ast_builder_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl<'a> AstBuilder<'a> {
self,
expr: &mut IdentifierReference<'a>,
) -> IdentifierReference<'a> {
let dummy = self.identifier_reference(expr.span(), "");
let dummy = self.identifier_reference(expr.span(), Atom::empty());
mem::replace(expr, dummy)
}

Expand Down

0 comments on commit bdee72e

Please sign in to comment.