Parents: #140, #163, #164
Pinned reference: Bun 4982b91e src/jsc/bindings/UtilInspect.cpp; Home 7ed99c02 ConsoleObject.zig
Implement the shared JSC__JSValue__callCustomInspectFunction private export as a real user-code call boundary, not a formatter shortcut.
Acceptance:
- Decode and validate the function and
thisvalues in the supplied realm/VM. - Create the pinned inspect options object with stable
stylize,depth, andcolorsproperties. - Supply a callable recursive inspect helper as the third argument.
- Invoke the custom function with exact
thisand(depth, options, inspect)arguments. - Publish thrown values/OOM through the VM-shared pending-exception channel and return the empty ABI sentinel.
- Root all values across the user-code call and cover GC-triggering callbacks.
- Add compiled consumer and Zig regressions for arguments,
this, color/no-color stylize behavior, recursion, thrown values, cross-VM rejection, and GC safety. - Regenerate both pinned inventories and update #140/#163/#164 totals with zero unclassified entries.