Skip to content

Runtime: add realm-owned process EventEmitter semantics #240

Description

@chrisbbreuer

Parent: #239

Add the selected-realm process object and the EventEmitter behavior required by Bun private ABI handlers.

Acceptance:

  • Provide on/addListener, once, off/removeListener, emit, listenerCount, and uncaught-exception capture callback accessors.
  • Match listener registration order, duplicate listeners, once-before-call removal, snapshot iteration under reentrant add/remove, receiver/arguments, return values, and thrown-listener propagation.
  • Keep listeners and capture callbacks precisely rooted, realm-local, hidden from ordinary reflection, and isolated across sibling globals.
  • Add focused normal/no-GIL/leak coverage and document the foundation without claiming warning/rejection handlers complete.

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