Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorbl-ue <54780737+bl-ue@users.noreply.github.com>2021-05-31 15:50:41 +0300
committerAntoine du Hamel <duhamelantoine1995@gmail.com>2021-06-01 13:06:37 +0300
commitdccf64ee9d3683c282a53acb0186ce8c97d7ced9 (patch)
treed0ea276bc5008ffce1f007cb36c7d55f02ae1927 /lib
parent11e77e44f9a837b021b2d402c4075a59289ca3b9 (diff)
lib: fix typos
PR-URL: https://github.com/nodejs/node/pull/38846 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Khaidi Chu <i@2333.moe> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/internal/modules/cjs/loader.js2
-rw-r--r--lib/internal/util.js2
-rw-r--r--lib/internal/util/comparisons.js4
-rw-r--r--lib/internal/util/inspect.js2
4 files changed, 5 insertions, 5 deletions
diff --git a/lib/internal/modules/cjs/loader.js b/lib/internal/modules/cjs/loader.js
index fbfc17ba6d1..4f2b5947552 100644
--- a/lib/internal/modules/cjs/loader.js
+++ b/lib/internal/modules/cjs/loader.js
@@ -913,7 +913,7 @@ Module._resolveFilename = function(request, parent, isMain, options) {
}
}
- // Try module self resoultion first
+ // Try module self resolution first
const parentPath = trySelfParentPath(parent);
const selfResolved = trySelf(parentPath, request);
if (selfResolved) {
diff --git a/lib/internal/util.js b/lib/internal/util.js
index f77f1fc4336..f0a04f61818 100644
--- a/lib/internal/util.js
+++ b/lib/internal/util.js
@@ -349,7 +349,7 @@ function promisify(original) {
promisify.custom = kCustomPromisifiedSymbol;
-// The build-in Array#join is slower in v8 6.0
+// The built-in Array#join is slower in v8 6.0
function join(output, separator) {
let str = '';
if (output.length !== 0) {
diff --git a/lib/internal/util/comparisons.js b/lib/internal/util/comparisons.js
index 729012d8ccb..95515fb78ac 100644
--- a/lib/internal/util/comparisons.js
+++ b/lib/internal/util/comparisons.js
@@ -427,9 +427,9 @@ function setEquiv(a, b, strict, memo) {
if (set === null) {
set = new SafeSet();
}
- // If the specified value doesn't exist in the second set its an not null
+ // If the specified value doesn't exist in the second set it's a non-null
// object (or non strict only: a not matching primitive) we'll need to go
- // hunting for something thats deep-(strict-)equal to it. To make this
+ // hunting for something that's deep-(strict-)equal to it. To make this
// O(n log n) complexity we have to copy these values in a new set first.
set.add(val);
} else if (!b.has(val)) {
diff --git a/lib/internal/util/inspect.js b/lib/internal/util/inspect.js
index 62746517729..6f8eb710a92 100644
--- a/lib/internal/util/inspect.js
+++ b/lib/internal/util/inspect.js
@@ -361,7 +361,7 @@ inspect.colors = ObjectAssign(ObjectCreate(null), {
italic: [3, 23],
underline: [4, 24],
blink: [5, 25],
- // Swap forground and background colors
+ // Swap foreground and background colors
inverse: [7, 27], // Alias: swapcolors, swapColors
hidden: [8, 28], // Alias: conceal
strikethrough: [9, 29], // Alias: strikeThrough, crossedout, crossedOut