Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle arbitrary EE implementations #223

Closed
wants to merge 1 commit into from

Conversation

KoryNunn
Copy link

Currently, if an emitter that does not inherit from EventEmitter is passed, an error will be thrown:

Error: emitter.prependListener is not a function

This PR checks for the existence of prependListener on the emitter that is passed in.

@calvinmetcalf
Copy link
Contributor

this is actually a seriese of regexes that transform the node version, if you can just add a test to in this folder I can work on a fix

@calvinmetcalf
Copy link
Contributor

see nodejs/node#8018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants