Skip to content

feat(engine): flag new Error(...) statements missing throw - #185

Merged
yoominho91 merged 1 commit into
mainfrom
engine-dropped-new-error
Oct 10, 2026
Merged

yoominho91 merged 1 commit into
mainfrom
engine-dropped-new-error

Conversation

@yoominho91

Copy link
Copy Markdown
Contributor

Adds new XError(...) expression statements (constructor name ending in Error/Exception) to the discarded-return-value diagnostic. Corpus run: 23 hits, 21 in node benchmark/fs where default: new Error('Invalid type') never throws. Fixture covers hit (ConfigError) and misses (thrown ParseError, non-error Widget); breaking the check fails the fixture.

https://claude.ai/code/session_01W9Mk18mBNfkPfgg3hYweKq

Folded into the discarded-return-value diagnostic. Corpus: 23 hits,
21 in node benchmark/fs (default: new Error('Invalid type')).

Claude-Session: https://claude.ai/code/session_01W9Mk18mBNfkPfgg3hYweKq
@vercel

vercel Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
fixearly Building Building Preview Oct 10, 2026 12:46pm UTC

@yoominho91
yoominho91 merged commit 4fa2ccc into main Oct 10, 2026
3 checks passed
@yoominho91
yoominho91 deleted the engine-dropped-new-error branch October 10, 2026 12:46

This branch was successfully deployed

1 active deployment
Preview — d2298371 Deployed Oct 10, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants