| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent cbc8561 commit 1043b6f
45 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,12 +11,12 @@ if (process.argv[2] === 'child') { | |||
| 11 | 11 | const rr = get({ port: server.address().port }, common.mustCall(() => { | |
| 12 | 12 | // This bad input (0) should abort the parser and the process | |
| 13 | 13 | rr.parser.consume(0); | |
| 14 | - // This line should be unreachanble. | ||
| 14 | + // This line should be unreachable. | ||
| 15 | 15 | assert.fail('this should be unreachable'); | |
| 16 | 16 | })); | |
| 17 | 17 | })); | |
| 18 | 18 | } else { | |
| 19 | - // super-proces | ||
| 19 | + // super-process | ||
| 20 | 20 | const child = spawn(process.execPath, [__filename, 'child']); | |
| 21 | 21 | child.stdout.on('data', common.mustNotCall()); | |
| 22 | 22 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,7 @@ require('../common'); | |||
| 11 | 11 | * @param {Object} activity including timestamps for each life time event, | |
| 12 | 12 | * i.e. init, before ... | |
| 13 | 13 | * @param {Object} hooks the expected life time event invocations with a count | |
| 14 | - * indicating how oftn they should have been invoked, | ||
| 14 | + * indicating how often they should have been invoked, | ||
| 15 | 15 | * i.e. `{ init: 1, before: 2, after: 2 }` | |
| 16 | 16 | * @param {String} stage the name of the stage in the test at which we are | |
| 17 | 17 | * checking the invocations | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,7 +3,7 @@ | |||
| 3 | 3 | const common = require('../common'); | |
| 4 | 4 | ||
| 5 | 5 | // This tests ensures that the triggerId of both the internal and external | |
| 6 | - // nexTick function sets the triggerAsyncId correctly. | ||
| 6 | + // nextTick function sets the triggerAsyncId correctly. | ||
| 7 | 7 | ||
| 8 | 8 | const assert = require('assert'); | |
| 9 | 9 | const async_hooks = require('async_hooks'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -53,7 +53,7 @@ function onlisten() { | |||
| 53 | 53 | const awaitOnconnectCalls = new Set(['server', 'client']); | |
| 54 | 54 | function maybeOnconnect(source) { | |
| 55 | 55 | // both server and client must call onconnect. On most OS's waiting for | |
| 56 | - // the client is sufficient, but on CertOS 5 the sever needs to respond too. | ||
| 56 | + // the client is sufficient, but on CentOS 5 the sever needs to respond too. | ||
| 57 | 57 | assert.ok(awaitOnconnectCalls.size > 0); | |
| 58 | 58 | awaitOnconnectCalls.delete(source); | |
| 59 | 59 | if (awaitOnconnectCalls.size > 0) return; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -32,7 +32,7 @@ function pruneTickObjects(activities) { | |||
| 32 | 32 | foundTickObject = true; | |
| 33 | 33 | ||
| 34 | 34 | // point all triggerAsyncIds that point to the tickObject | |
| 35 | - // to its triggerAsyncId and findally remove it from the activities | ||
| 35 | + // to its triggerAsyncId and finally remove it from the activities | ||
| 36 | 36 | const tickObject = activities[tickObjectIdx]; | |
| 37 | 37 | const newTriggerId = tickObject.triggerAsyncId; | |
| 38 | 38 | const oldTriggerId = tickObject.uid; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -82,7 +82,7 @@ if (process.env.NODE_TEST_WITH_ASYNC_HOOKS) { | |||
| 82 | 82 | const async_wrap = process.binding('async_wrap'); | |
| 83 | 83 | ||
| 84 | 84 | process.on('exit', () => { | |
| 85 | - // itterate through handles to make sure nothing crashes | ||
| 85 | + // iterate through handles to make sure nothing crashes | ||
| 86 | 86 | for (const k in initHandles) | |
| 87 | 87 | util.inspect(initHandles[k]); | |
| 88 | 88 | }); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -45,7 +45,7 @@ receiver = net.createServer(function(socket) { | |||
| 45 | 45 | }); | |
| 46 | 46 | }); | |
| 47 | 47 | ||
| 48 | - /* To signal the test runne we're up and listening */ | ||
| 48 | + /* To signal the test runner we're up and listening */ | ||
| 49 | 49 | receiver.on('listening', function() { | |
| 50 | 50 | console.log('ready'); | |
| 51 | 51 | }); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,7 +8,7 @@ const http = require('http'); | |||
| 8 | 8 | // Checks that an http.Agent properly asyncReset()s a reused socket handle, and | |
| 9 | 9 | // re-assigns the fresh async id to the reused `net.Socket` instance. | |
| 10 | 10 | ||
| 11 | - // Make sure a single socket is transpartently reused for 2 requests. | ||
| 11 | + // Make sure a single socket is transparently reused for 2 requests. | ||
| 12 | 12 | const agent = new http.Agent({ | |
| 13 | 13 | keepAlive: true, | |
| 14 | 14 | keepAliveMsecs: Infinity, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,13 +11,13 @@ let p_inits = 0; | |||
| 11 | 11 | common.crashOnUnhandledRejection(); | |
| 12 | 12 | ||
| 13 | 13 | // Not useful to place common.mustCall() around 'exit' event b/c it won't be | |
| 14 | - // able to check it anway. | ||
| 14 | + // able to check it anyway. | ||
| 15 | 15 | process.on('exit', (code) => { | |
| 16 | 16 | if (code !== 0) | |
| 17 | 17 | return; | |
| 18 | 18 | if (p_er !== null) | |
| 19 | 19 | throw p_er; | |
| 20 | - // Expecint exactly 2 PROMISE types to reach init. | ||
| 20 | + // Expecting exactly 2 PROMISE types to reach init. | ||
| 21 | 21 | assert.strictEqual(p_inits, EXPECTED_INITS); | |
| 22 | 22 | }); | |
| 23 | 23 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,7 +8,7 @@ if (process.argv[2] === 'async') { | |||
| 8 | 8 | throw new Error(); | |
| 9 | 9 | } | |
| 10 | 10 | (async function() { await fn(); })(); | |
| 11 | - // While the above should error, just in case it dosn't the script shouldn't | ||
| 11 | + // While the above should error, just in case it doesn't the script shouldn't | ||
| 12 | 12 | // fork itself indefinitely so return early. | |
| 13 | 13 | return; | |
| 14 | 14 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments