Skip to content

node:events: EventEmitter import shape and emitter semantics parity tail #4417

@andrewtdiz

Description

@andrewtdiz

Current scan reports on 2026-06-04 show a focused node:events tail still failing:

  • node-suite/events/imports/default-import
  • node-suite/events/imports/named-imports
  • node-suite/events/emitter/emit-multiple-args
  • node-suite/events/emitter/event-names-symbols
  • node-suite/events/emitter/instanceof
  • node-suite/events/emitter/capture-rejections

Expected Node behavior for this cut:

  • the default import is constructible as EventEmitter
  • named exports expose EventEmitter, getEventListeners, getMaxListeners, setMaxListeners, and listenerCount
  • new EventEmitter() instances satisfy instanceof EventEmitter
  • emit(event, ...args) forwards all args to listeners and to events.once() promise resolution
  • symbol event names are preserved for eventNames() and listenerCount()
  • { captureRejections: true } routes async listener rejection to the error event

Non-goals for this issue:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions