Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

events: emitter.setMaxListeners() should not have side effects #4395

Closed

Conversation

tricknotes
Copy link

This object initialization has been unnecessary from 12cf730.
rel #3803

This object initialization has been unnecessary from 12cf730.
rel nodejs#3803
var events = require('events');

var EventEmitter = require('events').EventEmitter;
var assert = require('assert');
Copy link
Member

Choose a reason for hiding this comment

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

Duplicate. Same goes for EventEmitter, you can just use events.EventEmitter below.

@bnoordhuis
Copy link
Member

Landed with some touch ups in eb50220. Thanks!

@bnoordhuis bnoordhuis closed this Dec 10, 2012
@tricknotes
Copy link
Author

I've confirmed. Thanks a bunch 😃

@tricknotes tricknotes deleted the set-max-listeners-side-effect branch December 27, 2012 03:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants