[L3] assertNever discards the offending value #29
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
indigocode/igasset-viewer-react#29
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
File:
packages/viewer-react/src/IgviewerContext.tsx:49-51The thrown error doesn't include
v, losing debugging info if the exhaustiveness guarantee is ever violated at runtime (e.g. a bad threading value crossing the boundary).Fix: interpolate the value, e.g.
throw new Error(`Unreachable: ${String(v)}`).Filed by an automated AI code review (manual proof-of-concept run). Code locations reference the
various-cleanupbranch.