From dcbe99b788133e61271d13ca5a1292f3c569f337 Mon Sep 17 00:00:00 2001 From: David Newman Date: Thu, 19 Dec 2019 09:33:52 -0500 Subject: [PATCH 1/3] lib: correct spelling and grammar --- lib/events.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/events.js b/lib/events.js index fc530ff7f3fc15..34c01398aca143 100644 --- a/lib/events.js +++ b/lib/events.js @@ -137,8 +137,8 @@ EventEmitter.init = function(opts) { } this[kCapture] = Boolean(opts.captureRejections); } else { - // Assigning it directly a prototype lookup, as it slighly expensive - // and it sits in a very sensitive hot path. + // Assigning it directly a prototype lookup, as it is slightly + // expensive and it sits in a very sensitive hot path. this[kCapture] = EventEmitter.prototype[kCapture]; } }; From d568f2232a4a8ca0086b6d5c06e3fbc086a747a5 Mon Sep 17 00:00:00 2001 From: David Newman Date: Thu, 19 Dec 2019 13:34:14 -0500 Subject: [PATCH 2/3] lib: improve grammar --- lib/events.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/events.js b/lib/events.js index 34c01398aca143..2537a01769c1a6 100644 --- a/lib/events.js +++ b/lib/events.js @@ -137,8 +137,8 @@ EventEmitter.init = function(opts) { } this[kCapture] = Boolean(opts.captureRejections); } else { - // Assigning it directly a prototype lookup, as it is slightly - // expensive 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. this[kCapture] = EventEmitter.prototype[kCapture]; } }; From 9a3eb0aa7b5465272109faef4d87cef91aef4755 Mon Sep 17 00:00:00 2001 From: David Newman Date: Thu, 19 Dec 2019 14:43:48 -0500 Subject: [PATCH 3/3] lib: remove trailing space --- lib/events.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/events.js b/lib/events.js index 2537a01769c1a6..2a7726e1951d19 100644 --- a/lib/events.js +++ b/lib/events.js @@ -137,7 +137,7 @@ EventEmitter.init = function(opts) { } this[kCapture] = Boolean(opts.captureRejections); } else { - // Assigning the kCapture property directly saves an expensive + // Assigning the kCapture property directly saves an expensive // prototype lookup in a very sensitive hot path. this[kCapture] = EventEmitter.prototype[kCapture]; }