mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-28 06:53:42 +08:00
A null-valued JSON field bakes as null, so the fixture's document now compiles. It keeps its purpose with a value no literal spells (1e400 parses to Infinity), and the mixed-table corpus program covers null elements. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8 lines
325 B
TypeScript
8 lines
325 B
TypeScript
/* A JSON document whose value doesn't bake: `1e400` parses to Infinity,
|
|
* which no number literal spells, so the import reports the bake failure
|
|
* at the import site and uses of the binding poison. (Its null-valued
|
|
* field bakes as null.) */
|
|
import bad from "./nulled.json" with { type: "json" };
|
|
|
|
console.log(bad.name);
|