fix(core): handle invalid dates in debug serialization
JU
2d ago+22+22+01234567890123456789-0-0-0123456789
Summary
Avoid a RangeError when serializeValueForDebug receives an invalid Date, including within arrays, while preserving valid date formatting.
Changed files
packages/core/src/utils/serialization/index.tspackages/core/src/utils/serialization/invalid-date.spec.ts
Validation
Isolated exact-source TS harness: 1 pass/2 fail -> 3/3 pass; TypeScript transpile passed; git apply --check on matched fixture.
Limitations: Full-repository lint, type checks and package CI were not run in this environment. Please evaluate the CI results of the final upstream PR. This change is independent of the user's other PRs.
Notes
- Confirmed against the source Blob SHAs recorded in the review manifest.
- AI-assisted analysis, local patch preparation, and isolated tests; the contributor is responsible for all code and scope.