Skip to content

Commit

Permalink
refactor(semantic): transform checker: change symbol name mismatch error
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Aug 22, 2024
1 parent ad73b9c commit 751a11e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/oxc_semantic/src/post_transform_checker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 751a11e

Please sign in to comment.