Skip to content

Commit

Permalink
fix(wasm): use ScopeTree's flags rather than enter_scope's flags …
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunqing authored Dec 17, 2024
1 parent b961d54 commit e0d440a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/oxc_wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,9 @@ impl Oxc {
}

impl Visit<'_> for ScopesTextWriter<'_> {
fn enter_scope(&mut self, flags: ScopeFlags, scope_id: &Cell<Option<ScopeId>>) {
fn enter_scope(&mut self, _: ScopeFlags, scope_id: &Cell<Option<ScopeId>>) {
let scope_id = scope_id.get().unwrap();
let flags = self.scopes.get_flags(scope_id);
self.write_line(format!("Scope {} ({flags:?}) {{", scope_id.index()));
self.indent_in();

Expand Down

0 comments on commit e0d440a

Please sign in to comment.