Skip to content

Conversation

Mottekmalocher
Copy link
Contributor

The constructor of the EventEmtiter (events.js) overrides the _maxListeners variable if its 0 or undefined or smth else. Due to calling the EventEmitter constructor after setMaxListerns(0) makes line 13 completely useless.

Disables the should allready disabled "warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit." message.

Copy link
Member

@AlcaDesign AlcaDesign left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please trim the empty lines to leave them as they were.

Otherwise LGTM

@AlcaDesign AlcaDesign merged commit 8e0aba6 into tmijs:master Feb 22, 2020
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