mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
perf(semantic): remove uneccessary allocation in builder (#3867)
This commit is contained in:
parent
8c9fc6347d
commit
10d1de584b
1 changed files with 1 additions and 1 deletions
|
|
@ -1912,7 +1912,7 @@ impl<'a> SemanticBuilder<'a> {
|
|||
fn reference_identifier(&mut self, ident: &IdentifierReference) {
|
||||
let flag = self.resolve_reference_usages();
|
||||
let name = ident.name.to_compact_str();
|
||||
let reference = Reference::new(ident.span, name.clone(), self.current_node_id, flag);
|
||||
let reference = Reference::new(ident.span, name, self.current_node_id, flag);
|
||||
// `function foo({bar: identifier_reference}) {}`
|
||||
// ^^^^^^^^^^^^^^^^^^^^ Parameter initializer must be resolved immediately
|
||||
// to avoid binding to variables inside the scope
|
||||
|
|
|
|||
Loading…
Reference in a new issue