We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5980a1 commit a83d338Copy full SHA for a83d338
lib/events.js
@@ -145,8 +145,8 @@ EventEmitter.init = function(opts) {
145
}
146
this[kCapture] = Boolean(opts.captureRejections);
147
} else {
148
- // Assigning it directly a prototype lookup, as it slighly expensive
149
- // 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.
150
this[kCapture] = EventEmitter.prototype[kCapture];
151
152
};
0 commit comments