Skip to content

ABI: implement rejection and uncaught-exception process dispatch #242

Description

@chrisbbreuer

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, and Bun__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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions