Skip to content

fix: replace 18 more stack traces with compile errors across codegen#189

Merged
cs01 merged 1 commit intomainfrom
throw-to-emiterror-4
Mar 10, 2026
Merged

fix: replace 18 more stack traces with compile errors across codegen#189
cs01 merged 1 commit intomainfrom
throw-to-emiterror-4

Conversation

@cs01
Copy link
Copy Markdown
Owner

@cs01 cs01 commented Mar 10, 2026

Summary

  • When users hit type dispatch errors, class method/field not found, closure capture failures, or unknown variables, they now get clear compile errors with context instead of Node.js stack traces
  • 18 throw new Error calls converted to emitError() across 7 files: string-methods.ts, class.ts, map.ts, set.ts, object.ts, variable-allocator.ts, llvm-generator.ts

Test plan

  • npm run verify:quick passes (tests + Stage 1 self-hosting)

🤖 Generated with Claude Code

@cs01 cs01 merged commit 7dbd6e6 into main Mar 10, 2026
12 checks passed
@cs01 cs01 deleted the throw-to-emiterror-4 branch March 12, 2026 05:35
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.

1 participant