From 3bf5e39e8ac5f21aab6589b8287c84f2fffc2bb9 Mon Sep 17 00:00:00 2001 From: Brandon Smith Date: Sat, 6 Oct 2018 21:09:29 -0400 Subject: [PATCH 1/6] benchmark: fix typos in get-ciphers.js --- benchmark/crypto/get-ciphers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark/crypto/get-ciphers.js b/benchmark/crypto/get-ciphers.js index d4c10a2427d360..5bbe0915311484 100644 --- a/benchmark/crypto/get-ciphers.js +++ b/benchmark/crypto/get-ciphers.js @@ -10,7 +10,7 @@ const bench = common.createBenchmark(main, { function main({ n, v }) { const method = require(v).getCiphers; var i = 0; - // First call to getChipers will dominate the results + // First call to getCiphers will dominate the results if (n > 1) { for (; i < n; i++) method(); From 2f22e491f41a33177af0ebe7546c7bc8faef141d Mon Sep 17 00:00:00 2001 From: Brandon Smith Date: Sat, 6 Oct 2018 21:10:15 -0400 Subject: [PATCH 2/6] doc: fix typos in n-api.md --- doc/api/n-api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/n-api.md b/doc/api/n-api.md index 430867f4629c1c..b253fa7f272c99 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -1757,7 +1757,7 @@ added: v10.7.0 ```C napi_status napi_create_bigint_uint64(napi_env env, - uint64_t vaue, + uint64_t value, napi_value* result); ``` From bddf8794f49959c53fceffb3115c54ad19d5adfa Mon Sep 17 00:00:00 2001 From: Brandon Smith Date: Sat, 6 Oct 2018 21:11:08 -0400 Subject: [PATCH 3/6] tools: fix typos in various files --- tools/cpplint.py | 4 ++-- tools/doc/apilinks.js | 2 +- tools/genv8constants.py | 2 +- tools/lint-js.js | 2 +- tools/lint-md.js | 6 +++--- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/cpplint.py b/tools/cpplint.py index f31ce284b52fe0..5f5f1400d7ec56 100755 --- a/tools/cpplint.py +++ b/tools/cpplint.py @@ -129,7 +129,7 @@ def GetNonHeaderExtensions(): likely to be false positives. quiet - Supress output other than linting errors, such as information about + Suppress output other than linting errors, such as information about which files have been processed and excluded. filter=-x,+y,... @@ -650,7 +650,7 @@ def GetNonHeaderExtensions(): # Files to exclude from linting. This is set by the --exclude flag. _excludes = None -# Whether to supress PrintInfo messages +# Whether to suppress PrintInfo messages _quiet = False # The allowed line length of files. diff --git a/tools/doc/apilinks.js b/tools/doc/apilinks.js index d7ec5684b79705..c86db143383c32 100644 --- a/tools/doc/apilinks.js +++ b/tools/doc/apilinks.js @@ -35,7 +35,7 @@ function execSync(command) { } } -// Determine orign repo and tag (or hash) of the most recent commit. +// Determine origin repo and tag (or hash) of the most recent commit. const local_branch = execSync('git name-rev --name-only HEAD'); const tracking_remote = execSync(`git config branch.${local_branch}.remote`); const remote_url = execSync(`git config remote.${tracking_remote}.url`); diff --git a/tools/genv8constants.py b/tools/genv8constants.py index b516728635b7a8..2b6ed8499253ec 100755 --- a/tools/genv8constants.py +++ b/tools/genv8constants.py @@ -78,7 +78,7 @@ def out_define(): # format, but this is the most obvious robust approach. We could almost # rely on looking at numbered fields, but some instructions look very # much like hex numbers (e.g., "adc"), and we don't want to risk picking - # those up by mistake, so we look at character-based columns intead. + # those up by mistake, so we look at character-based columns instead. # for i in range (0, 3): # 6-character margin, 2-characters + 1 space for each field diff --git a/tools/lint-js.js b/tools/lint-js.js index 69e5dd10e1a23a..4a7c2f08c324c8 100644 --- a/tools/lint-js.js +++ b/tools/lint-js.js @@ -192,7 +192,7 @@ if (cluster.isMaster) { const sliceLen = Math.min(maxWorkload, Math.ceil(files.length / numCPUs)); var slice; if (sliceLen === files.length) { - // Micro-ptimization to avoid splicing to an empty array + // Micro-optimization to avoid splicing to an empty array slice = files; files = null; } else { diff --git a/tools/lint-md.js b/tools/lint-md.js index 9d468165261766..8dd8a623db2fca 100644 --- a/tools/lint-md.js +++ b/tools/lint-md.js @@ -90,7 +90,7 @@ function wrap(fn, callback) { * pipeline), but later also threw an error. * We’re not about to restart the pipeline again, * so the only thing left to do is to throw the - * thing instea. */ + * thing instead. */ if (callback && invoked) { throw err } @@ -901,7 +901,7 @@ function representYamlFloat(object, style) { res = object.toString(10); // JS stringifier can build scientific format without dots: 5e-100, - // while YAML requres dot: 5.e-100. Fix it with simple hack + // while YAML requires dot: 5.e-100. Fix it with simple hack return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace('e', '.e') : res; } @@ -2322,7 +2322,7 @@ function readBlockScalar(state, nodeIndent) { } } - // Break this `while` cycle and go to the funciton's epilogue. + // Break this `while` cycle and go to the function's epilogue. break; } From 5d1808edb3f3525c7d929ec2eaafa37d22ed4b1a Mon Sep 17 00:00:00 2001 From: Brandon Smith Date: Sat, 6 Oct 2018 21:11:58 -0400 Subject: [PATCH 4/6] lib: fix typos in various files --- lib/internal/bootstrap/node.js | 2 +- lib/internal/http2/core.js | 2 +- lib/internal/repl/recoverable.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/internal/bootstrap/node.js b/lib/internal/bootstrap/node.js index 65986337c3875c..faf25d1b17f8d1 100644 --- a/lib/internal/bootstrap/node.js +++ b/lib/internal/bootstrap/node.js @@ -128,7 +128,7 @@ const browserGlobals = !process._noBrowserGlobals; if (browserGlobals) { - // we are setting this here to foward it to the inspector later + // we are setting this here to forward it to the inspector later perThreadSetup.originalConsole = global.console; setupGlobalTimeouts(); setupGlobalConsole(); diff --git a/lib/internal/http2/core.js b/lib/internal/http2/core.js index b1ed1eee8ff448..f4f020aa968a94 100644 --- a/lib/internal/http2/core.js +++ b/lib/internal/http2/core.js @@ -760,7 +760,7 @@ const proxySocketHandler = { // indicate if the ping was successful or not. The duration indicates the // number of milliseconds elapsed since the ping was sent and the ack // received. The payload is a Buffer containing the 8 bytes of payload -// data received on the PING acknowlegement. +// data received on the PING acknowledgement. function pingCallback(cb) { return function pingCallback(ack, duration, payload) { if (ack) { diff --git a/lib/internal/repl/recoverable.js b/lib/internal/repl/recoverable.js index 5d270f5146e403..023de2f7abcf73 100644 --- a/lib/internal/repl/recoverable.js +++ b/lib/internal/repl/recoverable.js @@ -5,7 +5,7 @@ const { tokTypes: tt } = acorn; // If the error is that we've unexpectedly ended the input, // then let the user try to recover by adding more input. -// Note: `e` (the original exception) is not used by the current implemention, +// Note: `e` (the original exception) is not used by the current implementation, // but may be needed in the future. function isRecoverableError(e, code) { let recoverable = false; From ba99bacd636e812104779fbdd794d697dbe01db1 Mon Sep 17 00:00:00 2001 From: Brandon Smith Date: Sat, 6 Oct 2018 21:12:33 -0400 Subject: [PATCH 5/6] src: fix typos in various files --- src/aliased_buffer.h | 2 +- src/env.cc | 4 ++-- src/inspector_agent.h | 2 +- src/node_api.h | 2 +- src/node_crypto.cc | 2 +- src/node_messaging.cc | 6 +++--- src/node_options.h | 2 +- src/sharedarraybuffer_metadata.cc | 2 +- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/aliased_buffer.h b/src/aliased_buffer.h index 931b2753646b8c..2642b2b2a744f0 100644 --- a/src/aliased_buffer.h +++ b/src/aliased_buffer.h @@ -14,7 +14,7 @@ namespace node { * going through JS, and the data is then available to user's via the exposed * JS object. * - * While this technique is computationaly efficient, it is effectively a + * While this technique is computationally efficient, it is effectively a * write to JS program state w/out going through the standard * (monitored) API. Thus any VM capabilities to detect the modification are * circumvented. diff --git a/src/env.cc b/src/env.cc index 9efeaadff14de8..14a8b23a8441e9 100644 --- a/src/env.cc +++ b/src/env.cc @@ -576,10 +576,10 @@ void Environment::RunTimers(uv_timer_t* handle) { ret = cb->Call(env->context(), process, 1, &arg); } while (ret.IsEmpty() && env->can_call_into_js()); - // NOTE(apapirovski): If it ever becomes possibble that `call_into_js` above + // NOTE(apapirovski): If it ever becomes possible that `call_into_js` above // is reset back to `true` after being previously set to `false` then this // code becomes invalid and needs to be rewritten. Otherwise catastrophic - // timers corruption will occurr and all timers behaviour will become + // timers corruption will occur and all timers behaviour will become // entirely unpredictable. if (ret.IsEmpty()) return; diff --git a/src/inspector_agent.h b/src/inspector_agent.h index e926ccaa926dab..9537ae05b61691 100644 --- a/src/inspector_agent.h +++ b/src/inspector_agent.h @@ -57,7 +57,7 @@ class Agent { bool IsListening() { return io_ != nullptr; } // Returns true if the Node inspector is actually in use. It will be true - // if either the user explicitely opted into inspector (e.g. with the + // if either the user explicitly opted into inspector (e.g. with the // --inspect command line flag) or if inspector JS API had been used. bool IsActive(); diff --git a/src/node_api.h b/src/node_api.h index 10a2c8ff3098be..e8c1f79de7cd91 100644 --- a/src/node_api.h +++ b/src/node_api.h @@ -598,7 +598,7 @@ NAPI_EXTERN napi_status napi_adjust_external_memory(napi_env env, int64_t change_in_bytes, int64_t* adjusted_value); -// Runnig a script +// Running a script NAPI_EXTERN napi_status napi_run_script(napi_env env, napi_value script, napi_value* result); diff --git a/src/node_crypto.cc b/src/node_crypto.cc index e5ea611eeb6d99..cfab315bdceafb 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -2533,7 +2533,7 @@ int VerifyCallback(int preverify_ok, X509_STORE_CTX* ctx) { // // Since we cannot perform I/O quickly enough in this callback, we ignore // all preverify_ok errors and let the handshake continue. It is - // imparative that the user use Connection::VerifyError after the + // imperative that the user use Connection::VerifyError after the // 'secure' callback has been made. return 1; } diff --git a/src/node_messaging.cc b/src/node_messaging.cc index a8b95401fdf06c..c9b5e324479975 100644 --- a/src/node_messaging.cc +++ b/src/node_messaging.cc @@ -98,7 +98,7 @@ MaybeLocal Message::Deserialize(Environment* env, message_ports_.clear(); std::vector> shared_array_buffers; - // Attach all transfered SharedArrayBuffers to their new Isolate. + // Attach all transferred SharedArrayBuffers to their new Isolate. for (uint32_t i = 0; i < shared_array_buffers_.size(); ++i) { Local sab; if (!shared_array_buffers_[i]->GetSharedArrayBuffer(env, context) @@ -116,7 +116,7 @@ MaybeLocal Message::Deserialize(Environment* env, &delegate); delegate.deserializer = &deserializer; - // Attach all transfered ArrayBuffers to their new Isolate. + // Attach all transferred ArrayBuffers to their new Isolate. for (uint32_t i = 0; i < array_buffer_contents_.size(); ++i) { Local ab = ArrayBuffer::New(env->isolate(), @@ -234,7 +234,7 @@ class SerializerDelegate : public ValueSerializer::Delegate { friend class worker::Message; }; -} // anynomous namespace +} // anonymous namespace Maybe Message::Serialize(Environment* env, Local context, diff --git a/src/node_options.h b/src/node_options.h index 0e8af86218b641..8c71881e64311d 100644 --- a/src/node_options.h +++ b/src/node_options.h @@ -231,7 +231,7 @@ class OptionsParser { void AddAlias(const std::string& from, const std::initializer_list& to); - // Add implications from some arbitary option to a boolean one, either + // Add implications from some arbitrary option to a boolean one, either // in a way that makes `from` set `to` to true or to false. void Implies(const std::string& from, const std::string& to); void ImpliesNot(const std::string& from, const std::string& to); diff --git a/src/sharedarraybuffer_metadata.cc b/src/sharedarraybuffer_metadata.cc index b20d9f46a44d5e..3e760bc50bebe6 100644 --- a/src/sharedarraybuffer_metadata.cc +++ b/src/sharedarraybuffer_metadata.cc @@ -21,7 +21,7 @@ namespace { // Yield a JS constructor for SABLifetimePartner objects in the form of a // standard API object, that has a single field for containing the raw -// SABLiftimePartner* pointer. +// SABLifetimePartner* pointer. Local GetSABLifetimePartnerConstructor( Environment* env, Local context) { Local templ; From 0cf3c8e84e8a1d24babae091d3ea03dd553cde00 Mon Sep 17 00:00:00 2001 From: Brandon Smith Date: Sat, 6 Oct 2018 21:12:50 -0400 Subject: [PATCH 6/6] test: fix typos in various files --- .../test-embedder.api.async-resource.improper-unwind.js | 2 +- test/internet/test-dgram-broadcast-multi-process.js | 2 +- test/parallel/test-cluster-fork-windowsHide.js | 2 +- test/parallel/test-cluster-setup-master-cumulative.js | 2 +- test/parallel/test-crypto-stream.js | 2 +- test/parallel/test-gc-tls-external-memory.js | 2 +- test/parallel/test-http-eof-on-connect.js | 2 +- test/parallel/test-http-full-response.js | 4 ++-- test/parallel/test-http-pipeline-flood.js | 2 +- ...compat-serverresponse-end-after-statuses-without-body.js | 6 +++--- test/parallel/test-https-agent-additional-options.js | 2 +- test/parallel/test-module-readonly.js | 2 +- test/parallel/test-querystring-maxKeys-non-finite.js | 2 +- test/parallel/test-repl-editor.js | 4 ++-- test/parallel/test-stdio-pipe-access.js | 2 +- test/parallel/test-stream-writable-write-writev-finish.js | 2 +- test/parallel/test-timers-unrefd-interval-still-fires.js | 2 +- test/parallel/test-worker-debug.js | 4 ++-- 18 files changed, 23 insertions(+), 23 deletions(-) diff --git a/test/async-hooks/test-embedder.api.async-resource.improper-unwind.js b/test/async-hooks/test-embedder.api.async-resource.improper-unwind.js index a552b46e1f3116..cb9e338905c386 100644 --- a/test/async-hooks/test-embedder.api.async-resource.improper-unwind.js +++ b/test/async-hooks/test-embedder.api.async-resource.improper-unwind.js @@ -19,7 +19,7 @@ if (process.argv[2] === 'child') { // Therefore the 'after' of event2 needs to occur before the // 'after' of event 1. // The first test of the two below follows that rule, - // the second one doesnt. + // the second one doesn't. const event1 = new AsyncResource('event1', async_hooks.executionAsyncId()); const event2 = new AsyncResource('event2', async_hooks.executionAsyncId()); diff --git a/test/internet/test-dgram-broadcast-multi-process.js b/test/internet/test-dgram-broadcast-multi-process.js index 606ab818c9d73b..c30059e739b687 100644 --- a/test/internet/test-dgram-broadcast-multi-process.js +++ b/test/internet/test-dgram-broadcast-multi-process.js @@ -146,7 +146,7 @@ if (process.argv[2] !== 'child') { } }); - console.error('[PARENT] %d received %d matching messges.', + console.error('[PARENT] %d received %d matching messages.', worker.pid, count); diff --git a/test/parallel/test-cluster-fork-windowsHide.js b/test/parallel/test-cluster-fork-windowsHide.js index a7476983f9e39d..b9ee701beb65ff 100644 --- a/test/parallel/test-cluster-fork-windowsHide.js +++ b/test/parallel/test-cluster-fork-windowsHide.js @@ -45,7 +45,7 @@ if (!process.argv[2]) { } else if (cluster.isMaster) { cluster.setupMaster({ - silient: true, + silent: true, windowsHide: true }); diff --git a/test/parallel/test-cluster-setup-master-cumulative.js b/test/parallel/test-cluster-setup-master-cumulative.js index 838890cb4b338c..2621685e315bcc 100644 --- a/test/parallel/test-cluster-setup-master-cumulative.js +++ b/test/parallel/test-cluster-setup-master-cumulative.js @@ -40,7 +40,7 @@ console.log('ok sets defaults'); cluster.setupMaster({ exec: 'overridden' }); assert.strictEqual(cluster.settings.exec, 'overridden'); -console.log('ok overrids defaults'); +console.log('ok overrides defaults'); cluster.setupMaster({ args: ['foo', 'bar'] }); assert.strictEqual(cluster.settings.exec, 'overridden'); diff --git a/test/parallel/test-crypto-stream.js b/test/parallel/test-crypto-stream.js index 0464829f74caed..9430084bbee179 100644 --- a/test/parallel/test-crypto-stream.js +++ b/test/parallel/test-crypto-stream.js @@ -40,7 +40,7 @@ if (!common.hasFipsCrypto) { }); } - _write(data, encodeing, done) { + _write(data, encoding, done) { this._buffers.push(data); return done(null); } diff --git a/test/parallel/test-gc-tls-external-memory.js b/test/parallel/test-gc-tls-external-memory.js index d77553b1573009..2b584dd93dcf5b 100644 --- a/test/parallel/test-gc-tls-external-memory.js +++ b/test/parallel/test-gc-tls-external-memory.js @@ -31,7 +31,7 @@ function connect() { const externalMemoryUsage = process.memoryUsage().external; assert(externalMemoryUsage >= 0, `${externalMemoryUsage} < 0`); if (runs++ === 512) { - // Make sure at least half the TLS sockets have been gargbage collected + // Make sure at least half the TLS sockets have been garbage collected // (so that this test can actually check what it's testing): assert(gced >= 256, `${gced} < 256`); return; diff --git a/test/parallel/test-http-eof-on-connect.js b/test/parallel/test-http-eof-on-connect.js index 7e244354c1cb88..5e885bb91a9daa 100644 --- a/test/parallel/test-http-eof-on-connect.js +++ b/test/parallel/test-http-eof-on-connect.js @@ -27,7 +27,7 @@ const http = require('http'); // This is a regression test for https://github.com/joyent/node/issues/44 // It is separate from test-http-malformed-request.js because it is only -// reproduceable on the first packet on the first connection to a server. +// reproducible on the first packet on the first connection to a server. const server = http.createServer(common.mustNotCall()); server.listen(0); diff --git a/test/parallel/test-http-full-response.js b/test/parallel/test-http-full-response.js index 2f6fc8fc2a176c..d08e091ebd9808 100644 --- a/test/parallel/test-http-full-response.js +++ b/test/parallel/test-http-full-response.js @@ -56,10 +56,10 @@ function runAb(opts, callback) { const completeRequests = parseInt(m[1]); m = /HTML transferred:\s*(\d+) bytes/i.exec(stdout); - const htmlTransfered = parseInt(m[1]); + const htmlTransferred = parseInt(m[1]); assert.strictEqual(bodyLength, documentLength); - assert.strictEqual(completeRequests * documentLength, htmlTransfered); + assert.strictEqual(completeRequests * documentLength, htmlTransferred); if (callback) callback(); }); diff --git a/test/parallel/test-http-pipeline-flood.js b/test/parallel/test-http-pipeline-flood.js index 3d6167d3870566..29df81e857db60 100644 --- a/test/parallel/test-http-pipeline-flood.js +++ b/test/parallel/test-http-pipeline-flood.js @@ -9,7 +9,7 @@ const common = require('../common'); // processed). // Normally when the writable stream emits a 'drain' event, the server then -// uncorks the readable stream, although we arent testing that part here. +// uncorks the readable stream, although we aren't testing that part here. // The issue being tested exists in Node.js 0.10.20 and is resolved in 0.10.21 // and newer. diff --git a/test/parallel/test-http2-compat-serverresponse-end-after-statuses-without-body.js b/test/parallel/test-http2-compat-serverresponse-end-after-statuses-without-body.js index 83d5521bf2473f..ce8cbe600c8bd8 100644 --- a/test/parallel/test-http2-compat-serverresponse-end-after-statuses-without-body.js +++ b/test/parallel/test-http2-compat-serverresponse-end-after-statuses-without-body.js @@ -15,15 +15,15 @@ const { HTTP_STATUS_NOT_MODIFIED } = h2.constants; -const statusWithouBody = [ +const statusWithoutBody = [ HTTP_STATUS_NO_CONTENT, HTTP_STATUS_RESET_CONTENT, HTTP_STATUS_NOT_MODIFIED, ]; -const STATUS_CODES_COUNT = statusWithouBody.length; +const STATUS_CODES_COUNT = statusWithoutBody.length; const server = h2.createServer(common.mustCall(function(req, res) { - res.writeHead(statusWithouBody.pop()); + res.writeHead(statusWithoutBody.pop()); res.end(); }, STATUS_CODES_COUNT)); diff --git a/test/parallel/test-https-agent-additional-options.js b/test/parallel/test-https-agent-additional-options.js index 8d10524d902ca7..eaa6ea710e4d9f 100644 --- a/test/parallel/test-https-agent-additional-options.js +++ b/test/parallel/test-https-agent-additional-options.js @@ -24,7 +24,7 @@ function getBaseOptions(port) { path: '/', port: port, ca: options.ca, - rejectUnautorized: true, + rejectUnauthorized: true, servername: 'agent1', }; } diff --git a/test/parallel/test-module-readonly.js b/test/parallel/test-module-readonly.js index fa12471a37c31b..8f14d9ee18c34a 100644 --- a/test/parallel/test-module-readonly.js +++ b/test/parallel/test-module-readonly.js @@ -38,7 +38,7 @@ try { except = err; } -// Remove the expliclty granted rights, and reenable inheritance +// Remove the explicitly granted rights, and re-enable inheritance cp.execSync( `icacls.exe "${readOnlyModFullPath}" /remove "%USERNAME%" /inheritance:e`); diff --git a/test/parallel/test-querystring-maxKeys-non-finite.js b/test/parallel/test-querystring-maxKeys-non-finite.js index 2db3acff0fc41f..4c752fd26948d5 100644 --- a/test/parallel/test-querystring-maxKeys-non-finite.js +++ b/test/parallel/test-querystring-maxKeys-non-finite.js @@ -34,7 +34,7 @@ const originalMaxLength = 1000; const params = createManyParams(count); // thealphanerd -// 27def4f introduced a change to parse that would cause Inifity +// 27def4f introduced a change to parse that would cause Infinity // to be passed to String.prototype.split as an argument for limit // In this instance split will always return an empty array // this test confirms that the output of parse is the expected length diff --git a/test/parallel/test-repl-editor.js b/test/parallel/test-repl-editor.js index 8db7789f029a10..5afbf2540d8403 100644 --- a/test/parallel/test-repl-editor.js +++ b/test/parallel/test-repl-editor.js @@ -74,7 +74,7 @@ const tests = [ tests.forEach(run); // Auto code alignment for .editor mode -function testCodeAligment({ input, cursor = 0, line = '' }) { +function testCodeAlignment({ input, cursor = 0, line = '' }) { const stream = new ArrayStream(); const outputStream = new ArrayStream(); @@ -121,4 +121,4 @@ const codeAlignmentTests = [ } ]; -codeAlignmentTests.forEach(testCodeAligment); +codeAlignmentTests.forEach(testCodeAlignment); diff --git a/test/parallel/test-stdio-pipe-access.js b/test/parallel/test-stdio-pipe-access.js index 084fa4c038e7da..e8f8131d1f19e8 100644 --- a/test/parallel/test-stdio-pipe-access.js +++ b/test/parallel/test-stdio-pipe-access.js @@ -3,7 +3,7 @@ const common = require('../common'); if (!common.isMainThread) common.skip("Workers don't have process-like stdio"); -// Test if Node handles acessing process.stdin if it is a redirected +// Test if Node handles accessing process.stdin if it is a redirected // pipe without deadlocking const { spawn, spawnSync } = require('child_process'); diff --git a/test/parallel/test-stream-writable-write-writev-finish.js b/test/parallel/test-stream-writable-write-writev-finish.js index c0bb60f925cfd8..98660b76ac8ea6 100644 --- a/test/parallel/test-stream-writable-write-writev-finish.js +++ b/test/parallel/test-stream-writable-write-writev-finish.js @@ -174,7 +174,7 @@ const stream = require('stream'); }; w.on('error', common.mustCall()); w.on('finish', () => { - w.write("should't write in finish listener"); + w.write("shouldn't write in finish listener"); }); w.end(); } diff --git a/test/parallel/test-timers-unrefd-interval-still-fires.js b/test/parallel/test-timers-unrefd-interval-still-fires.js index a9e9af84304217..45c59c01082777 100644 --- a/test/parallel/test-timers-unrefd-interval-still-fires.js +++ b/test/parallel/test-timers-unrefd-interval-still-fires.js @@ -16,7 +16,7 @@ const timer = setInterval(common.mustCall(() => { if (--N === 0) { clearInterval(timer); timer._onTimeout = - common.mustNotCall('Unrefd interal fired after being cleared'); + common.mustNotCall('Unrefd interval fired after being cleared'); clearTimeout(keepOpen); } }, N), 1); diff --git a/test/parallel/test-worker-debug.js b/test/parallel/test-worker-debug.js index 8691879f14e78f..2340c233a1470c 100644 --- a/test/parallel/test-worker-debug.js +++ b/test/parallel/test-worker-debug.js @@ -130,11 +130,11 @@ class WorkerSession extends EventEmitter { async function testBasicWorkerDebug(session, post) { /* - 1. Do 'enble' with waitForDebuggerOnStart = true + 1. Do 'enable' with waitForDebuggerOnStart = true 2. Run worker. It should break on start. 3. Enable Runtime (to get console message) and Debugger. Resume. 4. Breaks on the 'debugger' statement. Resume. - 5. Console message recieved, worker runs to a completion. + 5. Console message received, worker runs to a completion. 6. contextCreated/contextDestroyed had been properly dispatched */ console.log('Test basic debug scenario');