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 five shared pinned private error factories:
JSC__JSValue__createTypeError and JSC__JSValue__createRangeError from ZigString message/code pairs.
JSC__createError, JSC__createTypeError, and JSC__createRangeError from every BunString representation.
Match selected-realm intrinsic prototypes, exact message/code text, freshness, first-exception behavior, and the pinned descriptor distinction: RangeError code is read-only while TypeError code is writable.
Acceptance
Empty, Latin-1, UTF-8, UTF-16, astral, and lone-surrogate message/code inputs are covered.
TypeError and RangeError code descriptors match pinned attributes, including omission for an empty code.
BunString Empty, WTFStringImpl, ZigString, StaticZigString, and invalid/dead behavior is explicit.
Selected-realm freshness, same-VM siblings, and first-exception preservation are covered.
Focused runtime, both inventories, README/docs, and parent trackers are current.
Completion evidence
Implemented on main in 9a34a555; README and ABI documentation published in 8bc87bcf.
Parent
Scope
Implement five shared pinned private error factories:
JSC__JSValue__createTypeErrorandJSC__JSValue__createRangeErrorfrom ZigString message/code pairs.JSC__createError,JSC__createTypeError, andJSC__createRangeErrorfrom every BunString representation.Match selected-realm intrinsic prototypes, exact message/code text, freshness, first-exception behavior, and the pinned descriptor distinction: RangeError
codeis read-only while TypeErrorcodeis writable.Acceptance
Completion evidence
Implemented on
mainin9a34a555; README and ABI documentation published in8bc87bcf.codeis writable/enumerable/configurable; RangeErrorcodeis read-only/enumerable/configurable; empty codes are omitted.zig build test-home-private-abi -Doptimize=Debugpasses 100/100 symbols.