8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07d195a commit 02fc95dCopy full SHA for 02fc95d
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