mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-24 06:14:01 +08:00
* feat: add static BigInt support * fix: prevent BigInt width overflow on WASI * fix: harden BigInt formatting sizes * test: record BigInt WASI parity baseline
15 lines
444 B
TypeScript
15 lines
444 B
TypeScript
// BigInt itself is static; these adjacent representation boundaries remain
|
|
// explicit refusals until their own coherent families land.
|
|
const typed = new BigInt64Array(4);
|
|
const dynamicValue: unknown = 1n;
|
|
const keyed = new Map<bigint, string>();
|
|
keyed.set(1n, "one");
|
|
console.log(JSON.stringify(1n));
|
|
|
|
import { statSync } from "node:fs";
|
|
const stats = statSync(".", { bigint: true });
|
|
console.log(stats.size);
|
|
|
|
void typed;
|
|
void dynamicValue;
|