mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-02 08:35:07 +08:00
- Run the production LLVM backend natively and reproduce its output across compiler generations. - Replace unchecked emitter contexts with explicit shared state and callback hosts. - Preserve NaN in serialized IR and respect optional record storage during spreads.
6 lines
278 B
TypeScript
6 lines
278 B
TypeScript
const values = [{ name: "first", id: 1 }].slice();
|
|
// The array callback ABI includes undefined; spreading that arm cannot
|
|
// initialize the required fields inferred by TypeScript.
|
|
const copies = values.map((value) => ({ ...value, label: "copy" }));
|
|
console.log(copies.length);
|