Skip to content

Commit c171c49

Browse files
maynisaacs
authored andcommitted
fixes #6031 spelling errors
explictly => explicitly accesss => access througput => throughput epxression => expression communiction => communication becuase => because repersent => represent condonitions => conditions decompresion => decompression intentially => intentionally eventes => events listning => listening resicved => received becuase => because fundimental => fundamental colapse => collapse privlages => privileges sufficently => sufficiently hapepns => happens expliclitly => explicitly thier => their shold => should
1 parent 5555318 commit c171c49

24 files changed

+27
-27
lines changed

benchmark/fs/read-stream-throughput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// test the througput of the fs.WriteStream class.
1+
// test the throughput of the fs.WriteStream class.
22

33
var path = require('path');
44
var common = require('../common.js');

benchmark/fs/write-stream-throughput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// test the througput of the fs.WriteStream class.
1+
// test the throughput of the fs.WriteStream class.
22

33
var path = require('path');
44
var common = require('../common.js');

lib/_debugger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ Client.prototype.reqEval = function(expression, cb) {
366366
};
367367

368368

369-
// Finds the first scope in the array in which the epxression evals.
369+
// Finds the first scope in the array in which the expression evals.
370370
Client.prototype._reqFramesEval = function(expression, evalFrames, cb) {
371371
if (evalFrames.length == 0) {
372372
// Just eval in global scope.

lib/_stream_readable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function ReadableState(options, stream) {
5151
this.reading = false;
5252

5353
// a flag to be able to tell if the onwrite cb is called immediately,
54-
// or on a later tick. We set this to true at first, becuase any
54+
// or on a later tick. We set this to true at first, because any
5555
// actions that shouldn't happen until "later" should generally also
5656
// not happen before the first write call.
5757
this.sync = true;

lib/_stream_writable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function WritableState(options, stream) {
8484
this.corked = 0;
8585

8686
// a flag to be able to tell if the onwrite cb is called immediately,
87-
// or on a later tick. We set this to true at first, becuase any
87+
// or on a later tick. We set this to true at first, because any
8888
// actions that shouldn't happen until "later" should generally also
8989
// not happen before the first write call.
9090
this.sync = true;

lib/_tls_wrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ TLSSocket.prototype._init = function() {
157157
// lib/net.js expect this value to be non-zero if write hasn't been flushed
158158
// immediately
159159
// TODO(indutny): rewise this solution, it might be 1 before handshake and
160-
// repersent real writeQueueSize during regular writes.
160+
// represent real writeQueueSize during regular writes.
161161
this._handle.writeQueueSize = 1;
162162

163163
var self = this;

lib/domain.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var events = require('events');
2424
var EventEmitter = events.EventEmitter;
2525
var inherits = util.inherits;
2626

27-
// methods that are called when trying to shut down expliclitly bound EEs
27+
// methods that are called when trying to shut down explicitly bound EEs
2828
var endMethods = ['end', 'abort', 'destroy', 'destroySoon'];
2929

3030
// communicate with events module, but don't require that

lib/module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function Module(id, parent) {
5050
module.exports = Module;
5151

5252
// Set the environ variable NODE_MODULE_CONTEXTS=1 to make node load all
53-
// modules in thier own context.
53+
// modules in their own context.
5454
Module._contextLoad = (+process.env['NODE_MODULE_CONTEXTS'] > 0);
5555
Module._cache = {};
5656
Module._pathCache = {};

lib/readline.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ Interface.prototype._ttyWrite = function(s, key) {
727727
self.pause();
728728
self.emit('SIGCONT');
729729
}
730-
// explictly re-enable "raw mode" and move the cursor to
730+
// explicitly re-enable "raw mode" and move the cursor to
731731
// the correct position.
732732
// See https://github.com/joyent/node/issues/3295.
733733
self._setRawMode(true);

src/node.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
var path = NativeModule.require('path');
8484
process.argv[1] = path.resolve(process.argv[1]);
8585

86-
// If this is a worker in cluster mode, start up the communiction
86+
// If this is a worker in cluster mode, start up the communication
8787
// channel.
8888
if (process.env.NODE_UNIQUE_ID) {
8989
var cluster = NativeModule.require('cluster');
@@ -318,7 +318,7 @@
318318
var nextTickQueue = [];
319319

320320
// this infoBox thing is used so that the C++ code in src/node.cc
321-
// can have easy accesss to our nextTick state, and avoid unnecessary
321+
// can have easy access to our nextTick state, and avoid unnecessary
322322
// calls into process._tickCallback.
323323
// order is [length, index, inTick, lastThrew]
324324
// Never write code like this without very good reason!

test/disabled/test-eio-race.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var assert = require('assert');
2626
var count = 100;
2727
var fs = require('fs');
2828

29-
// person.jpg is 57kb. We just need some file that is sufficently large.
29+
// person.jpg is 57kb. We just need some file that is sufficiently large.
3030
var filename = require('path').join(common.fixturesDir, 'person.jpg');
3131

3232
function tryToKillEventLoop() {

test/disabled/test-sendfd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
// path, they are sent the write end of the pipe from above.
3535
// 3. The client is sent n JSON representations of the DATA variable, each
3636
// with a different ordinal. We send these delimited by '\n' strings
37-
// so that the receiving end can avoid any coalescing that hapepns
37+
// so that the receiving end can avoid any coalescing that happens
3838
// due to the stream nature of the socket (e.g. '{}{}' is not a valid
3939
// JSON string).
4040
// 4. The child process receives file descriptors and JSON blobs and,

test/disabled/test-setuidgid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323

2424

25-
// Requires special privlages
25+
// Requires special privileges
2626
var common = require('../common');
2727
var assert = require('assert');
2828

test/simple/test-child-process-disconnect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ if (process.argv[2] === 'child') {
8484
childSelfTerminate = true;
8585
});
8686

87-
// when child is listning
87+
// when child is listening
8888
child.on('message', function(msg) {
8989
if (msg === 'ready') {
9090

test/simple/test-cluster-dgram-2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// without limitation the rights to use, copy, modify, merge, publish,
77
// distribute, sublicense, and/or sell copies of the Software, and to permit
88
// persons to whom the Software is furnished to do so, subject to the
9-
// following condonitions:
9+
// following conditions:
1010
//
1111
// The above copyright notice and this permission notice shall be included
1212
// in all copies or substantial portions of the Software.

test/simple/test-cluster-message.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ else if (cluster.isMaster) {
9797
// Spawn worker
9898
var worker = cluster.fork();
9999

100-
// When a IPC message is resicved form the worker
100+
// When a IPC message is received form the worker
101101
worker.on('message', function(message) {
102102
check('master', message === 'message from worker');
103103
});

test/simple/test-cluster-worker-disconnect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ if (cluster.isWorker) {
7373
checks.cluster.emitExit = true;
7474
});
7575

76-
// Check worker eventes and properties
76+
// Check worker events and properties
7777
worker.once('disconnect', function() {
7878
checks.worker.emitDisconnect = true;
7979
checks.worker.suicideMode = worker.suicide;

test/simple/test-cluster-worker-exit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ if (cluster.isWorker) {
8585
"cluster: 'exit' event before 'disconnect' event");
8686
});
8787

88-
// Check worker eventes and properties
88+
// Check worker events and properties
8989
worker.on('disconnect', function() {
9090
results.worker_emitDisconnect += 1;
9191
results.worker_suicideMode = worker.suicide;

test/simple/test-cluster-worker-kill.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ if (cluster.isWorker) {
8383
"cluster: 'exit' event before 'disconnect' event");
8484
});
8585

86-
// Check worker eventes and properties
86+
// Check worker events and properties
8787
worker.on('disconnect', function() {
8888
results.worker_emitDisconnect += 1;
8989
results.worker_suicideMode = worker.suicide;

test/simple/test-http-client-timeout-event.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ server.listen(options.port, options.host, function() {
3939
// this space intentionally left blank
4040
});
4141
req.on('error', function() {
42-
// this space is intentially left blank
42+
// this space is intentionally left blank
4343
});
4444
req.on('close', function() {
4545
server.close();

test/simple/test-http-res-write-end-dont-take-array.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ server.listen(common.PORT, function() {
5555
// just make a request, other tests handle responses
5656
http.get({port: common.PORT}, function(res) {
5757
res.resume();
58-
// lazy serial test, becuase we can only call end once per request
58+
// lazy serial test, because we can only call end once per request
5959
test += 1;
6060
// do it again to test .end(Buffer);
6161
http.get({port: common.PORT}, function(res) {

test/simple/test-repl-.save.load.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ putIn.run(['.clear']);
8585

8686
var loadFile = join(common.tmpDir, 'file.does.not.exist');
8787

88-
// shold not break
88+
// should not break
8989
putIn.write = function(data) {
9090
// make sure I get a failed to load message and not some crazy error
9191
assert.equal(data, 'Failed to load:' + loadFile + '\n');

test/simple/test-url.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,13 +1442,13 @@ relativeTests.forEach(function(relativeTest) {
14421442
});
14431443

14441444
//format: [to, from, result]
1445-
// the test: ['.//g', 'f:/a', 'f://g'] is a fundimental problem
1445+
// the test: ['.//g', 'f:/a', 'f://g'] is a fundamental problem
14461446
// url.parse('f:/a') does not have a host
1447-
// url.resolve('f:/a', './/g') does not have a host becuase you have moved
1447+
// url.resolve('f:/a', './/g') does not have a host because you have moved
14481448
// down to the g directory. i.e. f: //g, however when this url is parsed
14491449
// f:// will indicate that the host is g which is not the case.
14501450
// it is unclear to me how to keep this information from being lost
1451-
// it may be that a pathname of ////g should colapse to /g but this seems
1451+
// it may be that a pathname of ////g should collapse to /g but this seems
14521452
// to be a lot of work for an edge case. Right now I remove the test
14531453
if (relativeTests2[181][0] === './/g' &&
14541454
relativeTests2[181][1] === 'f:/a' &&

test/simple/test-zlib-dictionary.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
2020
// USE OR OTHER DEALINGS IN THE SOFTWARE.
2121

22-
// test compression/decompresion with dictionary
22+
// test compression/decompression with dictionary
2323

2424
var common = require('../common.js');
2525
var assert = require('assert');

0 commit comments

Comments
 (0)