Skip to content

benchmark: events/eventtarget throws #33782

Closed
@mscdex

Description

  • Version: master
  • Platform: Linux
  • Subsystem: events

The events/eventtarget.js benchmark fails every time with:

internal/event_target.js:250
      throw new ERR_EVENT_RECURSION(event.type);
      ^

Error [ERR_EVENT_RECURSION]: The event "foo" is already being dispatched
    at EventTarget.dispatchEvent (internal/event_target.js:250:13)
    at main (/home/bench/node/benchmark/events/eventtarget.js:20:12)
    at /home/bench/node/benchmark/common.js:42:9
    at processTicksAndRejections (internal/process/task_queues.js:79:11) {
  code: 'ERR_EVENT_RECURSION'
}

/cc @jasnell

Metadata

Assignees

No one assigned

    Labels

    benchmarkIssues and PRs related to the benchmark subsystem.eventsIssues and PRs related to the events subsystem / EventEmitter.eventtargetIssues and PRs related to the EventTarget implementation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions