From 167f7e452d54a0740e6a7196fcf0a6d51fc2d79f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20Deng=20=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90?= Date: Tue, 27 Aug 2024 09:10:41 +0800 Subject: [PATCH] fix(wasm): set both scope and symbol (#5236) --- crates/oxc_wasm/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/oxc_wasm/src/lib.rs b/crates/oxc_wasm/src/lib.rs index 876e94b70..22e4cc1e9 100644 --- a/crates/oxc_wasm/src/lib.rs +++ b/crates/oxc_wasm/src/lib.rs @@ -279,7 +279,8 @@ impl Oxc { .semantic; if run_options.scope.unwrap_or_default() { self.scope_text = Self::get_scope_text(&semantic); - } else if run_options.symbol.unwrap_or_default() { + } + if run_options.symbol.unwrap_or_default() { self.symbols = semantic.symbols().serialize(&self.serializer)?; } }