Console capture. Called for each console.* invocation in the page.
globalThis.console: forward directly to the parent's console.console.log("hi")in the page printshito stdout with Bun's formatter;console.errorgoes to stderr. Zero JS overhead per call — dispatches throughConsoleClientdirectly.(type, ...args) => void: custom callback.typeis the method name ("log"|"warn"|"error"|"info"|"debug"| ...). Primitive args unwrap to their raw values; object args arrive as a structured descriptor — for Chrome, the CDPRemoteObjectwith.type/.className/.description/.preview.properties; for WebKit, the JSON round-trip of the object (lossy for functions/ circular refs, which stringify to theirString(...)coercion).