FactoryWager Wiki

Bun runtime nits — Phase 1 verification

Runtime truth probes for Bun APIs that are easy to misuse at the edge: Bun.inspect options, Web Streams compression, WHATWG URL properties, and Bun.file vs fs.

Proof JSON: /registry/bun-runtime-nits-proof.json

Included in verify-all (step 8) and check:release-tracker. Subsystem: runtime (orthogonal to probe category: inspect · streams · url · file-io).

Categories

Category Probes What it proves
inspect 7 sorted, compact, showProxy, getters, numericSeparator, maxStringLength, customInspectruntime truth, not Node parity
streams 2 gzip CompressionStream/DecompressionStream roundtrip; TextEncoderStream/TextDecoderStream
url 4 host, origin, searchParams, host setter
file-io 3 lazy Bun.file size, Bun.write auto-dir, bytes vs fs.readFile

Commands

bun tools/verify-bun-runtime-nits.ts
bun tools/verify-bun-runtime-nits.ts --save
bun run verify:bun-runtime-nits:save
bun test tests/bun-runtime-nits-probes.test.ts

Inspect runtime truth (Bun 1.4)

Project SSOT: lib/console-depth.ts exposes only options verified on Bun 1.4 (depth, colors, compact, sorted). Probes record behavior for Node-compat options:

Canonical refs: bun tools/bun-doc-refs.ts suggest "Bun.inspect.sorted"