Parent: #239 Depends on: #240, #241
Implement the remaining Bun handled/unhandled rejection and uncaught-exception process hooks.
Acceptance:
- Implement
Bun__handleUnhandledRejection,Bun__emitHandledPromiseEvent,Bun__handleUncaughtException, andBun__wrapUnhandledRejectionErrorForUncaughtException. - Match event arguments and return codes, monitor-before-handler ordering, capture-callback precedence, origin strings, warning policy, and fatal fallback boundaries.
- Connect Promise rejection notification/late-handled tracking without duplicate events.
- Preserve first exceptions, listener-throw behavior, sibling identity, and precise roots; add pinned fixtures and docs.