You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement the shared pinned Home/Bun JSON serialization pair:
JSC__JSValue__jsonStringify
JSC__JSValue__jsonStringifyFast
Parent: #134
Profile umbrella: #140
Home profile: #163
Bun profile: #164
Acceptance criteria
The normal export passes the unsigned indentation request through JSON.stringify semantics, including the ten-space clamp and exact pretty-print layout.
The fast export uses an undefined space value, producing the exact compact result without changing language semantics.
Both paths preserve toJSON, property enumeration order, getters, proxies, omission/null rules, BigInt/cycle errors, Unicode/lone-surrogate escaping, and selected-realm behavior.
A top-level non-serializable value returns an empty BunString without inventing an exception.
Successful results own exact Latin-1 or UTF-16 BunString storage with correct ref/deref lifetime.
Same-VM siblings, foreign values, invalid encodings, abrupt completion, output initialization, and first-pending-exception behavior are deterministic.
The combined private ABI fixture links and exercises both exports.
Home/Bun inventories, README/docs, and parent trackers publish the regenerated counts and green evidence.
Focused tests and the relevant batched ABI audits pass before closure.
Pinned reference
Bun revision 4982b91e, src/jsc/bindings/bindings.cpp, functions JSC__JSValue__jsonStringify and JSC__JSValue__jsonStringifyFast.
Completion evidence
Code: d345fc7b — normal indent-aware and undefined-space fast serialization with exact owned BunString output and boundary exception handling.
Documentation: 454782f0 — README, ABI, API, and Home integration evidence/counts.
Goal
Implement the shared pinned Home/Bun JSON serialization pair:
JSC__JSValue__jsonStringifyJSC__JSValue__jsonStringifyFastParent: #134
Profile umbrella: #140
Home profile: #163
Bun profile: #164
Acceptance criteria
toJSON, property enumeration order, getters, proxies, omission/null rules, BigInt/cycle errors, Unicode/lone-surrogate escaping, and selected-realm behavior.Pinned reference
Bun revision
4982b91e,src/jsc/bindings/bindings.cpp, functionsJSC__JSValue__jsonStringifyandJSC__JSValue__jsonStringifyFast.Completion evidence
d345fc7b— normal indent-aware and undefined-space fast serialization with exact owned BunString output and boundary exception handling.454782f0— README, ABI, API, and Home integration evidence/counts.36a617b3; this ABI-only slice did not regenerate performance scores.