mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-04 08:04:37 +08:00
A JavaScript class that extends Error and declares `set name(v)` or `set message(v)` (quickjs-wasi's JSException) made the Error property write dispatcher, which exists once any program writes `.name` or `.message` on an Error, pass a string where the untyped setter takes a dynamic value. IR validation failed with SC9001 "expected dyn, got string". The dispatcher now coerces the value to the setter's parameter type, which leaves TypeScript setters (string parameters) unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>