mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
`SymbolTable::get_symbol_id_from_name(name).is_none()` is not always correct, because it will return `false` if there is a binding *anywhere* in the AST with that name, whereas what we actually want to know is whether *this* `IdentifierReference` is referring to a global or not. Instead, look up whether this reference is resolved or not using `SymbolTable::is_global_reference`. The 3 test cases added were not working prior to this change. |
||
|---|---|---|
| .. | ||
| examples | ||
| fixtures | ||
| src | ||
| tests | ||
| Cargo.toml | ||
| CHANGELOG.md | ||