mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-08 08:44:37 +08:00
`export default <expr>` and the anonymous default function/class have no named binding for the dynamic namespace getter to read, so a namespace used as a dynamic value fenced its `default` property with SC1090. They do have storage: the module registers a `default` global keyed by its default export symbol, which is what a default import reads. The getter keeps that symbol per export and answers the snapshot coerced to `dyn`, so the boxed namespace's `default` matches Node; a missing registration still fences SC1090 and a value with no checked-dynamic form still fences SC1101. Corpus: 8412-module-namespace-untyped gains an `export default 42` module and reads its boxed and typed `default`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>