Files
scriptc/tests
Malte UblandClaude Opus 5.5 61ab4fbc25 Lower an object spread of a maybe-absent union source
`{ ...maybeRecord }` where the source is `T | undefined` was an SC1090
refusal when the target field had no earlier contributor. Node treats an
absent source as a no-op, so a present source now copies field by field
through the checked extraction (`x!`): the record arm copies the value,
and the absent unit arm throws the catchable TypeError instead of leaving
a required slot unset. An optional target field keeps its no-copy arm.

Corpus 8501 pins the present-source copy and the optional destination; a
new errors-harness case covers both arms of the required-field path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 09:37:06 -07:00
..
…