Skip to content

Don't rely on _events, use .eventNames() instead when it's present. #6

@ChALkeR

Description

@ChALkeR

EventEmitter.prototype.eventNames was added in nodejs/node#5617 an will be available in Node.js 6.0 and later.

You should probably check for its presense and use that instead of manually listing EventEmitter.prototype._events in index.js#L81-L83, so you won't be hitting undocumented internal API.

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