Files
scriptc/tests/corpus/2751-buffer-concat-sparse-list.ts
Chris Tate 94fd361b54 Implement sparse native arrays and missing-value parity (#297)
Represent ordinary JavaScript arrays with hole, value, and explicit-undefined states; add sparse side storage and carry missing values through the frontend, native backends, runtime, and Node-facing consumers.
2026-09-12 22:39:07 -05:00

9 lines
148 B
TypeScript

const parts: Uint8Array[] = [];
parts[1] = Buffer.from("b");
try {
Buffer.concat(parts);
} catch {
console.log("caught sparse concat item");
}