Scope
Continue the contiguous Bun corpus from #66 at position 4089:
js/web/broadcastchannel/broadcast-channel.test.ts
Current gap
The first ten BroadcastChannel behavior tests reach the final custom-inspect assertion, where Home exposes bootstrap implementation fields instead of Bun's public diagnostic shape.
Expected:
BroadcastChannel { name:
'hello',
active:
true }Current Home output includes internal fields such as onmessage, onmessageerror, __home_bc_closed, and __home_bc_listeners.
The failing test also verifies that user util.inspect options (compact: true, breakLength: 2) are forwarded through the custom inspector.
Acceptance criteria
- expose Bun's
BroadcastChannel { name, active }custom-inspect shape - hide adapter implementation fields from inspection
- forward user inspect options without hard-coded formatting
- preserve behavior/lifecycle tests in the same upstream file
- pass all 11 upstream tests with no TODO or unsupported accounting
- add a focused permanent inspect regression with useful operation/cause stack diagnostics if formatting fails
Follows the worker teardown fix in #326.