Skip to content

Commit eb29e97

Browse files
committed
events: improve creation performance
1 parent 67b1383 commit eb29e97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/events.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ EventEmitter.init = function(opts) {
342342

343343
if (this._events === undefined ||
344344
this._events === ObjectGetPrototypeOf(this)._events) {
345-
this._events = { __proto__: null };
345+
this._events = { };
346346
this._eventsCount = 0;
347347
}
348348

0 commit comments

Comments
 (0)