mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-27 06:43:19 +08:00
`a?.b.c` on an `any` value answered undefined when `a` was present and `a.b` undefined: every later step of the chain read optionally. Node short-circuits only on the guarded receiver and throws reading `.c`. An `any` receiver now makes the tail an optional chain like a dyn one, and inside the chain's guarded body the consumed `?.` no longer marks the later dynamic reads optional. (Kept from #1561, whose checked-cast fallback is reverted.) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>