We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6c815c commit 4198d9aCopy full SHA for 4198d9a
lib/events.js
@@ -146,8 +146,8 @@ EventEmitter.init = function(opts) {
146
}
147
this[kCapture] = Boolean(opts.captureRejections);
148
} else {
149
- // Assigning it directly a prototype lookup, as it slighly expensive
150
- // and it sits in a very sensitive hot path.
+ // Assigning the kCapture property directly saves an expensive
+ // prototype lookup in a very sensitive hot path.
151
this[kCapture] = EventEmitter.prototype[kCapture];
152
153
};
0 commit comments