Skip to content

Commit 4bfe9c5

Browse files
committed
u
1 parent 5f0b8c2 commit 4bfe9c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/oxc_semantic/src/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1670,7 +1670,6 @@ impl<'a> Visit<'a> for SemanticBuilder<'a> {
16701670
fn visit_with_statement(&mut self, stmt: &WithStatement<'a>) {
16711671
let kind = AstKind::WithStatement(self.alloc(stmt));
16721672
self.enter_node(kind);
1673-
self.enter_scope(ScopeFlags::empty(), &stmt.scope_id);
16741673

16751674
/* cfg - condition basic block */
16761675
#[cfg(feature = "cfg")]
@@ -1679,6 +1678,7 @@ impl<'a> Visit<'a> for SemanticBuilder<'a> {
16791678
/* cfg */
16801679

16811680
self.visit_expression(&stmt.object);
1681+
self.enter_scope(ScopeFlags::empty(), &stmt.scope_id);
16821682

16831683
/* cfg - body basic block */
16841684
#[cfg(feature = "cfg")]

0 commit comments

Comments
 (0)