mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
refactor(semantic): transform checker: change symbol name mismatch error (#5075)
This commit is contained in:
parent
1b6b27a6de
commit
b14a302ed0
1 changed files with 3 additions and 3 deletions
|
|
@ -438,10 +438,10 @@ impl<'s> PostTransformChecker<'s> {
|
|||
.map(Pair::from_tuple)
|
||||
{
|
||||
// Check names match
|
||||
let symbol_names =
|
||||
let names =
|
||||
self.get_pair(symbol_ids, |data, symbol_id| data.symbols.names[symbol_id].clone());
|
||||
if symbol_names.is_mismatch() {
|
||||
self.errors.push_mismatch("Symbol mismatch", symbol_ids, symbol_names);
|
||||
if names.is_mismatch() {
|
||||
self.errors.push_mismatch("Symbol name mismatch", symbol_ids, names);
|
||||
}
|
||||
|
||||
// Check flags match
|
||||
|
|
|
|||
Loading…
Reference in a new issue