fix(wasm): set both scope and symbol (#5236)

This commit is contained in:
Kevin Deng 三咲智子 2024-08-27 09:10:41 +08:00 committed by GitHub
parent b39544e0f2
commit 167f7e452d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)?;
}
}