Files
scriptc/tests
Malte UblandClaude Opus 5.5 c3232c265d fs: accept a const options binding in three-argument writeFileSync
The three-argument form required its options argument to be an inline
object literal, so a shared `const SCRATCH = { encoding: "utf-8",
mode: 0o600 } as const` binding — the shape pi's temp-file helpers use —
fell through to SC2020 even though every option was a literal. Resolve a
`const` initializer through `constInitializerOf`, strip casts and
parentheses, and admit a literal whose every option member is a
literal-valued property, which is exactly what the inline form accepted.

Corpus 8413 pins the creation mode and that an existing file keeps its
mode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 05:38:14 -07:00
..
…
2026-10-27 16:45:14 -05:00