Files
oxc-project__oxc/crates/oxc_react_compiler/fixtures/error.todo-try-catch-finally.js
Boshen c9ec55e635 fix(react-compiler): improve diagnostic spans (#25731)
Improve React Compiler diagnostics with focused primary spans and related labels for declarations, dependencies, effects, nested functions, dynamic Hooks, and transitive ref access. This avoids full-function highlights and fixes zero-width arrow labels when lowered parameter spans are missing.

Validation: `env -u NO_COLOR just ready`.

AI-generated with Codex; reviewed and validated by the contributor.
2026-08-16 03:22:59 +00:00

11 lines
129 B
JavaScript

// @outputMode:"lint"
function Component() {
try {
doWork();
} catch {
recover();
} finally {
cleanup();
}
}