| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 73b05cf commit bf7d7ae
13 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -88,7 +88,7 @@ for (const m of [[kKeyEncodingPKCS1, 'pkcs1'], [kKeyEncodingPKCS8, 'pkcs8'], | |||
| 88 | 88 | encodingNames[m[0]] = m[1]; | |
| 89 | 89 | ||
| 90 | 90 | // Creating the KeyObject class is a little complicated due to inheritance | |
| 91 | - // and the fact that KeyObjects should be transferrable between threads, | ||
| 91 | + // and the fact that KeyObjects should be transferable between threads, | ||
| 92 | 92 | // which requires the KeyObject base class to be implemented in C++. | |
| 93 | 93 | // The creation requires a callback to make sure that the NativeKeyObject | |
| 94 | 94 | // base class cannot exist without the other KeyObject implementations. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -80,7 +80,7 @@ function type(V) { | |||
| 80 | 80 | case 'object': // Fall through | |
| 81 | 81 | case 'function': // Fall through | |
| 82 | 82 | default: | |
| 83 | - // Per ES spec, typeof returns an implemention-defined value that is not | ||
| 83 | + // Per ES spec, typeof returns an implementation-defined value that is not | ||
| 84 | 84 | // any of the existing ones for uncallable non-standard exotic objects. | |
| 85 | 85 | // Yet Type() which the Web IDL spec depends on returns Object for such | |
| 86 | 86 | // cases. So treat the default case as an object. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -59,7 +59,7 @@ const kSerializeResolver = Symbol('dns:resolver:serialize'); | |||
| 59 | 59 | const kDeserializeResolver = Symbol('dns:resolver:deserialize'); | |
| 60 | 60 | const kSnapshotStates = Symbol('dns:resolver:config'); | |
| 61 | 61 | const kInitializeHandle = Symbol('dns:resolver:initializeHandle'); | |
| 62 | - const kSetServersInteral = Symbol('dns:resolver:setServers'); | ||
| 62 | + const kSetServersInternal = Symbol('dns:resolver:setServers'); | ||
| 63 | 63 | ||
| 64 | 64 | // Resolver instances correspond 1:1 to c-ares channels. | |
| 65 | 65 | ||
@@ -139,10 +139,10 @@ class ResolverBase { | |||
| 139 | 139 | throw new ERR_INVALID_IP_ADDRESS(serv); | |
| 140 | 140 | }); | |
| 141 | 141 | ||
| 142 | - this[kSetServersInteral](newSet, servers); | ||
| 142 | + this[kSetServersInternal](newSet, servers); | ||
| 143 | 143 | } | |
| 144 | 144 | ||
| 145 | - [kSetServersInteral](newSet, servers) { | ||
| 145 | + [kSetServersInternal](newSet, servers) { | ||
| 146 | 146 | const orig = ArrayPrototypeMap(this._handle.getServers() || [], (val) => { | |
| 147 | 147 | val.unshift(isIP(val[0])); | |
| 148 | 148 | return val; | |
@@ -194,7 +194,7 @@ class ResolverBase { | |||
| 194 | 194 | this._handle.setLocalAddress(ipv4, ipv6); | |
| 195 | 195 | } | |
| 196 | 196 | if (servers) { | |
| 197 | - this[kSetServersInteral](servers, servers); | ||
| 197 | + this[kSetServersInternal](servers, servers); | ||
| 198 | 198 | } | |
| 199 | 199 | } | |
| 200 | 200 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -337,7 +337,7 @@ class Glob { | |||
| 337 | 337 | const subPatterns = new SafeSet(); | |
| 338 | 338 | const nSymlinks = new SafeSet(); | |
| 339 | 339 | for (const index of pattern.indexes) { | |
| 340 | - // For each child, chek potential patterns | ||
| 340 | + // For each child, check potential patterns | ||
| 341 | 341 | if (this.#cache.seen(entryPath, pattern, index) || this.#cache.seen(entryPath, pattern, index + 1)) { | |
| 342 | 342 | return; | |
| 343 | 343 | } | |
@@ -365,7 +365,7 @@ class Glob { | |||
| 365 | 365 | // If next pattern is the last one, add to results | |
| 366 | 366 | this.#results.add(entryPath); | |
| 367 | 367 | } else if (nextMatches && entry.isDirectory()) { | |
| 368 | - // Pattern mached, meaning two patterns forward | ||
| 368 | + // Pattern matched, meaning two patterns forward | ||
| 369 | 369 | // are also potential patterns | |
| 370 | 370 | // e.g **/b/c when entry is a/b - add c to potential patterns | |
| 371 | 371 | subPatterns.add(index + 2); | |
@@ -532,7 +532,7 @@ class Glob { | |||
| 532 | 532 | const subPatterns = new SafeSet(); | |
| 533 | 533 | const nSymlinks = new SafeSet(); | |
| 534 | 534 | for (const index of pattern.indexes) { | |
| 535 | - // For each child, chek potential patterns | ||
| 535 | + // For each child, check potential patterns | ||
| 536 | 536 | if (this.#cache.seen(entryPath, pattern, index) || this.#cache.seen(entryPath, pattern, index + 1)) { | |
| 537 | 537 | return; | |
| 538 | 538 | } | |
@@ -566,7 +566,7 @@ class Glob { | |||
| 566 | 566 | yield this.#withFileTypes ? entry : entryPath; | |
| 567 | 567 | } | |
| 568 | 568 | } else if (nextMatches && entry.isDirectory()) { | |
| 569 | - // Pattern mached, meaning two patterns forward | ||
| 569 | + // Pattern matched, meaning two patterns forward | ||
| 570 | 570 | // are also potential patterns | |
| 571 | 571 | // e.g **/b/c when entry is a/b - add c to potential patterns | |
| 572 | 572 | subPatterns.add(index + 2); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -41,14 +41,14 @@ const cacheForGET = new SafeMap(); | |||
| 41 | 41 | // [1] The V8 snapshot doesn't like some C++ APIs to be loaded eagerly. Do it | |
| 42 | 42 | // lazily/at runtime and not top level of an internal module. | |
| 43 | 43 | ||
| 44 | - // [2] Creating a new agent instead of using the gloabl agent improves | ||
| 44 | + // [2] Creating a new agent instead of using the global agent improves | ||
| 45 | 45 | // performance and precludes the agent becoming tainted. | |
| 46 | 46 | ||
| 47 | 47 | /** @type {import('https').Agent} The Cached HTTP Agent for **secure** HTTP requests. */ | |
| 48 | 48 | let HTTPSAgent; | |
| 49 | 49 | /** | |
| 50 | 50 | * Make a HTTPs GET request (handling agent setup if needed, caching the agent to avoid | |
| 51 | - * redudant instantiations). | ||
| 51 | + * redundant instantiations). | ||
| 52 | 52 | * @param {Parameters<import('https').get>[0]} input - The URI to fetch. | |
| 53 | 53 | * @param {Parameters<import('https').get>[1]} options - See https.get() options. | |
| 54 | 54 | */ | |
@@ -67,7 +67,7 @@ function HTTPSGet(input, options) { | |||
| 67 | 67 | let HTTPAgent; | |
| 68 | 68 | /** | |
| 69 | 69 | * Make a HTTP GET request (handling agent setup if needed, caching the agent to avoid | |
| 70 | - * redudant instantiations). | ||
| 70 | + * redundant instantiations). | ||
| 71 | 71 | * @param {Parameters<import('http').get>[0]} input - The URI to fetch. | |
| 72 | 72 | * @param {Parameters<import('http').get>[1]} options - See http.get() options. | |
| 73 | 73 | */ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -415,7 +415,7 @@ class ModuleLoader { | |||
| 415 | 415 | /** | |
| 416 | 416 | * Translate a loaded module source into a ModuleWrap. This is run synchronously, | |
| 417 | 417 | * but the translator may return the ModuleWrap in a Promise. | |
| 418 | - * @param {stirng} url URL of the module to be translated. | ||
| 418 | + * @param {string} url URL of the module to be translated. | ||
| 419 | 419 | * @param {string} format Format of the module to be translated. This is used to find | |
| 420 | 420 | * matching translators. | |
| 421 | 421 | * @param {ModuleSource} source Source of the module to be translated. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -64,7 +64,7 @@ function createFinalization() { | |||
| 64 | 64 | const fn = ref.fn; | |
| 65 | 65 | ||
| 66 | 66 | // This should always happen, however GC is | |
| 67 | - // undeterministic so it might not happen. | ||
| 67 | + // indeterministic so it might not happen. | ||
| 68 | 68 | /* istanbul ignore else */ | |
| 69 | 69 | if (obj !== undefined) { | |
| 70 | 70 | fn(obj, event); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -26,7 +26,7 @@ const { | |||
| 26 | 26 | * Obsolete `weakModuleMap` entries are removed by the `finalizationRegistry` | |
| 27 | 27 | * callback. This pattern decouples the strong url reference to the source map | |
| 28 | 28 | * data and allow the cache to be reclaimed eagerly, without depending on an | |
| 29 | - * undeterministic callback of a finalization registry. | ||
| 29 | + * indeterministic callback of a finalization registry. | ||
| 30 | 30 | */ | |
| 31 | 31 | class SourceMapCacheMap { | |
| 32 | 32 | /** | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -377,7 +377,7 @@ class MockTimers { | |||
| 377 | 377 | return FunctionPrototypeToString(MockDate[kMock].#nativeDateDescriptor.value); | |
| 378 | 378 | }; | |
| 379 | 379 | ||
| 380 | - // We need to polute the prototype of this | ||
| 380 | + // We need to pollute the prototype of this | ||
| 381 | 381 | ObjectDefineProperties(MockDate, { | |
| 382 | 382 | __proto__: null, | |
| 383 | 383 | [kMock]: { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,7 +16,7 @@ module.exports = async function* v8Reporter(source) { | |||
| 16 | 16 | for await (const item of source) { | |
| 17 | 17 | const originalError = item.data.details?.error; | |
| 18 | 18 | if (originalError) { | |
| 19 | - // Error is overriden with a serialized version, so that it can be | ||
| 19 | + // Error is overridden with a serialized version, so that it can be | ||
| 20 | 20 | // deserialized in the parent process. | |
| 21 | 21 | // Error is restored after serialization. | |
| 22 | 22 | item.data.details.error = serializeError(originalError); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments