Parent: #393 Roadmap: #134 Private ABI: #140, #163, #164
Bun’s pinned determineSpecificType implementation delegates objects whose observable constructor result is falsy to Bun__inspect. Implement the exact diagnostic-reachable inspector behavior instead of retaining the current generic [object Object] projection.
Acceptance:
- Pin the relevant
ConsoleObject.Formatter/Bun__inspectsource contract and document the intentionally targeted diagnostic surface. - Match null-prototype objects and ordinary objects with falsy/overridden constructors, including own-key ordering and Bun’s constructor-field treatment.
- Format nested primitives, strings, Symbols, BigInts, functions, arrays, objects, accessors, and circular references with the pinned depth/layout rules.
- Preserve proxy/custom-inspect/getter observability exactly; no accidental extra traps or coercions.
- Preserve UTF-16/lone-surrogate content, allocation failure atomicity, and first-wins pending exceptions.
- Share the formatter with
Bun__ErrorCode__determineSpecificTypeand cover it through both Home and Bun profile libraries in Debug and ReleaseSafe. - Add focused differential fixtures against pinned Bun where host support is available and deterministic checked-in expectations everywhere.
Backward compatibility is out of scope; implement the clean pinned behavior.