Fix to display errors at the call site (#6991)

This commit is contained in:
Jonathan Tran
2025-05-15 22:11:37 -04:00
committed by GitHub
parent f6e26e0bab
commit 11620dfa6b
2 changed files with 20 additions and 7 deletions

View File

@ -1467,7 +1467,6 @@ impl Node<CallExpressionKw> {
.await
.map_err(|e| {
// Add the call expression to the source ranges.
// TODO currently ignored by the frontend
e.add_source_ranges(vec![callsite])
})?;