doc, lib, src, test, tools: fix assorted typos

PR-URL: https://github.com/nodejs/node/pull/29075
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
XhmikosR 2019-08-10 08:48:03 +03:00 committed by Rich Trott
parent d7a4ace34b
commit f114e5ba33
10 changed files with 10 additions and 10 deletions

View File

@ -42,7 +42,7 @@ changes:
is specified using an IP address, in which case the default is `''` (no is specified using an IP address, in which case the default is `''` (no
extension). extension).
See [`Session Resumption`][] for infomation about TLS session reuse. See [`Session Resumption`][] for information about TLS session reuse.
## Class: https.Server ## Class: https.Server
<!-- YAML <!-- YAML

View File

@ -307,7 +307,7 @@ function insert(item, refed, start) {
if (msecs < 0 || msecs === undefined) if (msecs < 0 || msecs === undefined)
return; return;
// Truncate so that accuracy of sub-milisecond timers is not assumed. // Truncate so that accuracy of sub-millisecond timers is not assumed.
msecs = Math.trunc(msecs); msecs = Math.trunc(msecs);
item._idleStart = start; item._idleStart = start;

View File

@ -125,7 +125,7 @@ MaybeLocal<Object> CreateProcessObject(Environment* env) {
#endif // NODE_HAS_RELEASE_URLS #endif // NODE_HAS_RELEASE_URLS
// process._rawDebug: may be overwritten later in JS land, but should be // process._rawDebug: may be overwritten later in JS land, but should be
// availbale from the begining for debugging purposes // available from the beginning for debugging purposes
env->SetMethod(process, "_rawDebug", RawDebug); env->SetMethod(process, "_rawDebug", RawDebug);
return scope.Escape(process); return scope.Escape(process);

View File

@ -6,7 +6,7 @@ console.log(message, 5);
while (t > 0) { while (t > 0) {
if (t++ === 1000) { if (t++ === 1000) {
t = 0; t = 0;
console.log(`Outputed message #${k++}`); console.log(`Outputted message #${k++}`);
} }
} }
process.exit(55); process.exit(55);

View File

@ -78,7 +78,7 @@ const interval = setInterval(common.mustCall(() => {
`Non-integer delay ordering should be ${expected}, but got ${ordering}` `Non-integer delay ordering should be ${expected}, but got ${ordering}`
); );
// 2 should always be last of these delays due to ordering guarentees by // 2 should always be last of these delays due to ordering guarantees by
// the implementation. // the implementation.
}), 2); }), 2);
} }

View File

@ -22,7 +22,7 @@ const { inspect } = require('util');
}), 1); }), 1);
timer.unref(); timer.unref();
// This relies on implicit timers handle sorting withing libuv. // This relies on implicit timers handle sorting within libuv.
setTimeout(common.mustCall(() => { setTimeout(common.mustCall(() => {
strictEqual(called, false, 'unref()\'d timer returned before check'); strictEqual(called, false, 'unref()\'d timer returned before check');

View File

@ -13,7 +13,7 @@ const fixtures = require('../common/fixtures');
// This test has a dependency on the order in which the TCP connection is made, // This test has a dependency on the order in which the TCP connection is made,
// and TLS server handshake completes. It assumes those server side events occur // and TLS server handshake completes. It assumes those server side events occur
// before the client side write callback, which is not guaranteed by the TLS // before the client side write callback, which is not guaranteed by the TLS
// API. It usally passes with TLS1.3, but TLS1.3 didn't exist at the time the // API. It usually passes with TLS1.3, but TLS1.3 didn't exist at the time the
// bug existed. // bug existed.
// //
// Pin the test to TLS1.2, since the test shouldn't be changed in a way that // Pin the test to TLS1.2, since the test shouldn't be changed in a way that

View File

@ -6,7 +6,7 @@ const common = require('../common');
// arbitrary execution points. By running a lot of // arbitrary execution points. By running a lot of
// JS code in a tight loop, the expectation // JS code in a tight loop, the expectation
// is that those will be at various control flow points // is that those will be at various control flow points
// preferrably in the JS land. // preferably in the JS land.
const { Worker } = require('worker_threads'); const { Worker } = require('worker_threads');
const code = 'setInterval(() => {' + const code = 'setInterval(() => {' +

View File

@ -6,7 +6,7 @@ const common = require('../common');
// arbitrary execution points. By using a number of // arbitrary execution points. By using a number of
// internal modules as load candidates, the expectation // internal modules as load candidates, the expectation
// is that those will be at various control flow points // is that those will be at various control flow points
// preferrably in the C++ land. // preferably in the C++ land.
const { Worker } = require('worker_threads'); const { Worker } = require('worker_threads');
const modules = [ 'fs', 'assert', 'async_hooks', 'buffer', 'child_process', const modules = [ 'fs', 'assert', 'async_hooks', 'buffer', 'child_process',

View File

@ -127,7 +127,7 @@ std::string CodeCacheBuilder::Generate(Local<Context> context) {
// TODO(joyeecheung): we can only compile the modules that can be // TODO(joyeecheung): we can only compile the modules that can be
// required here because the parameters for other types of builtins // required here because the parameters for other types of builtins
// are still very flexible. We should look into auto-generating // are still very flexible. We should look into auto-generating
// the paramters from the source somehow. // the parameters from the source somehow.
if (loader->CanBeRequired(id.c_str())) { if (loader->CanBeRequired(id.c_str())) {
NativeModuleLoader::Result result; NativeModuleLoader::Result result;
USE(loader->CompileAsModule(context, id.c_str(), &result)); USE(loader->CompileAsModule(context, id.c_str(), &result));