Skip to content

Commit af3a4ba

Browse files
committed
src: fix some typo errors and rename some variables
Signed-off-by: Archkon <180910180+Archkon@users.noreply.github.com>
1 parent c7ddda9 commit af3a4ba

36 files changed

Lines changed: 44 additions & 44 deletions

doc/api/stream.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2001,7 +2001,7 @@ If the loop terminates with a `break`, `return`, or a `throw`, the stream will
20012001
be destroyed. In other terms, iterating over a stream will consume the stream
20022002
fully. The stream will be read in chunks of size equal to the `highWaterMark`
20032003
option. In the code example above, data will be in a single chunk if the file
2004-
has less then 64 KiB of data because no `highWaterMark` option is provided to
2004+
has less than 64 KiB of data because no `highWaterMark` option is provided to
20052005
[`fs.createReadStream()`][].
20062006

20072007
##### `readable[Symbol.for('Stream.toAsyncStreamable')]()`

doc/api/vm.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2346,7 +2346,7 @@ console.log('OK');
23462346
```
23472347
23482348
**Note:** Strictly speaking, in this mode, `node:vm` departs from the letter of
2349-
the ECMAScript specification for [enqueing jobs][], by allowing asynchronous
2349+
the ECMAScript specification for [enqueuing jobs][], by allowing asynchronous
23502350
tasks from different contexts to run in a different order than they were
23512351
enqueued.
23522352
@@ -2588,7 +2588,7 @@ const { Script, SyntheticModule } = require('node:vm');
25882588
[`vm.runInContext()`]: #vmrunincontextcode-contextifiedobject-options
25892589
[`vm.runInThisContext()`]: #vmruninthiscontextcode-options
25902590
[contextified]: #what-does-it-mean-to-contextify-an-object
2591-
[enqueing jobs]: https://tc39.es/ecma262/#sec-hostenqueuepromisejob
2591+
[enqueuing jobs]: https://tc39.es/ecma262/#sec-hostenqueuepromisejob
25922592
[global object]: https://tc39.es/ecma262/#sec-global-object
25932593
[indirect `eval()` call]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval#direct_and_indirect_eval
25942594
[origin]: https://developer.mozilla.org/en-US/docs/Glossary/Origin

test/addons/stringbytes-external-exceed-max/binding.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#ifdef _AIX
66
// AIX allows over-allocation, and will SIGKILL when the allocated pages are
77
// used if there is not enough VM. Check for available space until
8-
// out-of-memory. Don't allow more then some (large) proportion of it to be
8+
// out-of-memory. Don't allow more than some (large) proportion of it to be
99
// used for the test strings, so Node & V8 have some space for allocations.
1010
#include <signal.h>
1111
#include <sys/vminfo.h>

test/es-module/test-esm-nowarn-exports.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { execPath } from 'node:process';
55
import { describe, it } from 'node:test';
66

77

8-
describe('ESM: experiemental warning for import.meta.resolve', { concurrency: !process.env.TEST_PARALLEL }, () => {
8+
describe('ESM: experimental warning for import.meta.resolve', { concurrency: !process.env.TEST_PARALLEL }, () => {
99
it('should not warn when caught', async () => {
1010
const { code, signal, stderr } = await spawnPromisified(execPath, [
1111
'--experimental-import-meta-resolve',

test/js-native-api/test_string/test_string.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ static napi_status validate_and_retrieve_single_string_arg(
2020

2121
NODE_API_ASSERT_STATUS(env,
2222
valuetype == napi_string,
23-
"Wrong type of argment. Expects a string.");
23+
"Wrong type of argument. Expects a string.");
2424

2525
return napi_ok;
2626
}

test/known_issues/test-fs-cp-filter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
// This test will fail because the the implementation does not properly
3+
// This test will fail because the implementation does not properly
44
// handle the case when the `src` or `dest` is a Buffer and the `filter`
55
// function is utilized when recursively copying directories.
66
// Refs: https://github.com/nodejs/node/issues/58634

test/known_issues/test-fs-readdir-promise-recursive-with-buffer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
// This test will fail because the the implementation does not properly
3+
// This test will fail because the implementation does not properly
44
// handle the case when the path is a Buffer and the function is called
55
// in recursive mode.
66

test/known_issues/test-fs-readdir-recursive-with-buffer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
// This test will fail because the the implementation does not properly
3+
// This test will fail because the implementation does not properly
44
// handle the case when the path is a Buffer and the function is called
55
// in recursive mode.
66

test/known_issues/test-fs-readdir-sync-recursive-with-buffer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
// This test will fail because the the implementation does not properly
3+
// This test will fail because the implementation does not properly
44
// handle the case when the path is a Buffer and the function is called
55
// in recursive mode.
66

test/parallel/test-abortcontroller.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const {
1313

1414
const { setTimeout: sleep } = require('timers/promises');
1515

16-
// All of the the tests in this file depend on public-facing Node.js APIs.
16+
// All of the tests in this file depend on public-facing Node.js APIs.
1717
// For tests that depend on Node.js internal APIs, please add them to
1818
// test-abortcontroller-internal.js instead.
1919

@@ -93,7 +93,7 @@ test('AbortSignal.abort() creates an already aborted signal', () => {
9393
assert.ok(signal.aborted);
9494
});
9595

96-
test('AbortController properties and methods valiate the receiver', () => {
96+
test('AbortController properties and methods validate the receiver', () => {
9797
const acSignalGet = Object.getOwnPropertyDescriptor(
9898
AbortController.prototype,
9999
'signal'

0 commit comments

Comments
 (0)