diff --git a/benchmark/fs/read-stream-throughput.js b/benchmark/fs/read-stream-throughput.js index af9a235b91..45582e9e62 100644 --- a/benchmark/fs/read-stream-throughput.js +++ b/benchmark/fs/read-stream-throughput.js @@ -1,4 +1,4 @@ -// test the througput of the fs.WriteStream class. +// test the throughput of the fs.WriteStream class. var path = require('path'); var common = require('../common.js'); diff --git a/benchmark/fs/write-stream-throughput.js b/benchmark/fs/write-stream-throughput.js index 57ce4c4fec..9ff58389c7 100644 --- a/benchmark/fs/write-stream-throughput.js +++ b/benchmark/fs/write-stream-throughput.js @@ -1,4 +1,4 @@ -// test the througput of the fs.WriteStream class. +// test the throughput of the fs.WriteStream class. var path = require('path'); var common = require('../common.js'); diff --git a/lib/_debugger.js b/lib/_debugger.js index ff33af50d2..aca52e5f30 100644 --- a/lib/_debugger.js +++ b/lib/_debugger.js @@ -366,7 +366,7 @@ Client.prototype.reqEval = function(expression, cb) { }; -// Finds the first scope in the array in which the epxression evals. +// Finds the first scope in the array in which the expression evals. Client.prototype._reqFramesEval = function(expression, evalFrames, cb) { if (evalFrames.length == 0) { // Just eval in global scope. diff --git a/lib/_stream_readable.js b/lib/_stream_readable.js index ca4cb0a39f..0c3fe3e7eb 100644 --- a/lib/_stream_readable.js +++ b/lib/_stream_readable.js @@ -51,7 +51,7 @@ function ReadableState(options, stream) { this.reading = false; // a flag to be able to tell if the onwrite cb is called immediately, - // or on a later tick. We set this to true at first, becuase any + // or on a later tick. We set this to true at first, because any // actions that shouldn't happen until "later" should generally also // not happen before the first write call. this.sync = true; diff --git a/lib/_stream_writable.js b/lib/_stream_writable.js index d091459620..ba2e920671 100644 --- a/lib/_stream_writable.js +++ b/lib/_stream_writable.js @@ -84,7 +84,7 @@ function WritableState(options, stream) { this.corked = 0; // a flag to be able to tell if the onwrite cb is called immediately, - // or on a later tick. We set this to true at first, becuase any + // or on a later tick. We set this to true at first, because any // actions that shouldn't happen until "later" should generally also // not happen before the first write call. this.sync = true; diff --git a/lib/_tls_wrap.js b/lib/_tls_wrap.js index e475887e52..a1fdf0a43d 100644 --- a/lib/_tls_wrap.js +++ b/lib/_tls_wrap.js @@ -157,7 +157,7 @@ TLSSocket.prototype._init = function() { // lib/net.js expect this value to be non-zero if write hasn't been flushed // immediately // TODO(indutny): rewise this solution, it might be 1 before handshake and - // repersent real writeQueueSize during regular writes. + // represent real writeQueueSize during regular writes. this._handle.writeQueueSize = 1; var self = this; diff --git a/lib/domain.js b/lib/domain.js index 588fb75b29..493c73ce66 100644 --- a/lib/domain.js +++ b/lib/domain.js @@ -24,7 +24,7 @@ var events = require('events'); var EventEmitter = events.EventEmitter; var inherits = util.inherits; -// methods that are called when trying to shut down expliclitly bound EEs +// methods that are called when trying to shut down explicitly bound EEs var endMethods = ['end', 'abort', 'destroy', 'destroySoon']; // communicate with events module, but don't require that diff --git a/lib/module.js b/lib/module.js index 07730ff650..88e0c5a710 100644 --- a/lib/module.js +++ b/lib/module.js @@ -50,7 +50,7 @@ function Module(id, parent) { module.exports = Module; // Set the environ variable NODE_MODULE_CONTEXTS=1 to make node load all -// modules in thier own context. +// modules in their own context. Module._contextLoad = (+process.env['NODE_MODULE_CONTEXTS'] > 0); Module._cache = {}; Module._pathCache = {}; diff --git a/lib/readline.js b/lib/readline.js index 68dde4d5ec..8b5ad99efc 100644 --- a/lib/readline.js +++ b/lib/readline.js @@ -727,7 +727,7 @@ Interface.prototype._ttyWrite = function(s, key) { self.pause(); self.emit('SIGCONT'); } - // explictly re-enable "raw mode" and move the cursor to + // explicitly re-enable "raw mode" and move the cursor to // the correct position. // See https://github.com/joyent/node/issues/3295. self._setRawMode(true); diff --git a/src/node.js b/src/node.js index fae354b409..549f5806c1 100644 --- a/src/node.js +++ b/src/node.js @@ -83,7 +83,7 @@ var path = NativeModule.require('path'); process.argv[1] = path.resolve(process.argv[1]); - // If this is a worker in cluster mode, start up the communiction + // If this is a worker in cluster mode, start up the communication // channel. if (process.env.NODE_UNIQUE_ID) { var cluster = NativeModule.require('cluster'); @@ -318,7 +318,7 @@ var nextTickQueue = []; // this infoBox thing is used so that the C++ code in src/node.cc - // can have easy accesss to our nextTick state, and avoid unnecessary + // can have easy access to our nextTick state, and avoid unnecessary // calls into process._tickCallback. // order is [length, index, inTick, lastThrew] // Never write code like this without very good reason! diff --git a/test/disabled/test-eio-race.js b/test/disabled/test-eio-race.js index 558d09a9cf..ec9e4490d8 100644 --- a/test/disabled/test-eio-race.js +++ b/test/disabled/test-eio-race.js @@ -26,7 +26,7 @@ var assert = require('assert'); var count = 100; var fs = require('fs'); -// person.jpg is 57kb. We just need some file that is sufficently large. +// person.jpg is 57kb. We just need some file that is sufficiently large. var filename = require('path').join(common.fixturesDir, 'person.jpg'); function tryToKillEventLoop() { diff --git a/test/disabled/test-sendfd.js b/test/disabled/test-sendfd.js index 7352d7918b..7f1cb6b9c5 100644 --- a/test/disabled/test-sendfd.js +++ b/test/disabled/test-sendfd.js @@ -34,7 +34,7 @@ // path, they are sent the write end of the pipe from above. // 3. The client is sent n JSON representations of the DATA variable, each // with a different ordinal. We send these delimited by '\n' strings -// so that the receiving end can avoid any coalescing that hapepns +// so that the receiving end can avoid any coalescing that happens // due to the stream nature of the socket (e.g. '{}{}' is not a valid // JSON string). // 4. The child process receives file descriptors and JSON blobs and, diff --git a/test/disabled/test-setuidgid.js b/test/disabled/test-setuidgid.js index 3d33e0039b..47cff97bfc 100644 --- a/test/disabled/test-setuidgid.js +++ b/test/disabled/test-setuidgid.js @@ -22,7 +22,7 @@ -// Requires special privlages +// Requires special privileges var common = require('../common'); var assert = require('assert'); diff --git a/test/simple/test-child-process-disconnect.js b/test/simple/test-child-process-disconnect.js index 301034c56e..5902be8f1e 100644 --- a/test/simple/test-child-process-disconnect.js +++ b/test/simple/test-child-process-disconnect.js @@ -84,7 +84,7 @@ if (process.argv[2] === 'child') { childSelfTerminate = true; }); - // when child is listning + // when child is listening child.on('message', function(msg) { if (msg === 'ready') { diff --git a/test/simple/test-cluster-dgram-2.js b/test/simple/test-cluster-dgram-2.js index d06ad7935a..cb5eaf0675 100644 --- a/test/simple/test-cluster-dgram-2.js +++ b/test/simple/test-cluster-dgram-2.js @@ -6,7 +6,7 @@ // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the -// following condonitions: +// following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. diff --git a/test/simple/test-cluster-message.js b/test/simple/test-cluster-message.js index 005cf28339..7407515ada 100644 --- a/test/simple/test-cluster-message.js +++ b/test/simple/test-cluster-message.js @@ -97,7 +97,7 @@ else if (cluster.isMaster) { // Spawn worker var worker = cluster.fork(); - // When a IPC message is resicved form the worker + // When a IPC message is received form the worker worker.on('message', function(message) { check('master', message === 'message from worker'); }); diff --git a/test/simple/test-cluster-worker-disconnect.js b/test/simple/test-cluster-worker-disconnect.js index 15329c998d..632a25f2db 100644 --- a/test/simple/test-cluster-worker-disconnect.js +++ b/test/simple/test-cluster-worker-disconnect.js @@ -73,7 +73,7 @@ if (cluster.isWorker) { checks.cluster.emitExit = true; }); - // Check worker eventes and properties + // Check worker events and properties worker.once('disconnect', function() { checks.worker.emitDisconnect = true; checks.worker.suicideMode = worker.suicide; diff --git a/test/simple/test-cluster-worker-exit.js b/test/simple/test-cluster-worker-exit.js index 38b44c199c..7b9d5d86c4 100644 --- a/test/simple/test-cluster-worker-exit.js +++ b/test/simple/test-cluster-worker-exit.js @@ -85,7 +85,7 @@ if (cluster.isWorker) { "cluster: 'exit' event before 'disconnect' event"); }); - // Check worker eventes and properties + // Check worker events and properties worker.on('disconnect', function() { results.worker_emitDisconnect += 1; results.worker_suicideMode = worker.suicide; diff --git a/test/simple/test-cluster-worker-kill.js b/test/simple/test-cluster-worker-kill.js index 284b83e7fe..8c6068e8db 100644 --- a/test/simple/test-cluster-worker-kill.js +++ b/test/simple/test-cluster-worker-kill.js @@ -83,7 +83,7 @@ if (cluster.isWorker) { "cluster: 'exit' event before 'disconnect' event"); }); - // Check worker eventes and properties + // Check worker events and properties worker.on('disconnect', function() { results.worker_emitDisconnect += 1; results.worker_suicideMode = worker.suicide; diff --git a/test/simple/test-http-client-timeout-event.js b/test/simple/test-http-client-timeout-event.js index e0fb16e614..e3e37f6993 100644 --- a/test/simple/test-http-client-timeout-event.js +++ b/test/simple/test-http-client-timeout-event.js @@ -39,7 +39,7 @@ server.listen(options.port, options.host, function() { // this space intentionally left blank }); req.on('error', function() { - // this space is intentially left blank + // this space is intentionally left blank }); req.on('close', function() { server.close(); diff --git a/test/simple/test-http-res-write-end-dont-take-array.js b/test/simple/test-http-res-write-end-dont-take-array.js index 0d68afc3f8..d60b75552d 100644 --- a/test/simple/test-http-res-write-end-dont-take-array.js +++ b/test/simple/test-http-res-write-end-dont-take-array.js @@ -55,7 +55,7 @@ server.listen(common.PORT, function() { // just make a request, other tests handle responses http.get({port: common.PORT}, function(res) { res.resume(); - // lazy serial test, becuase we can only call end once per request + // lazy serial test, because we can only call end once per request test += 1; // do it again to test .end(Buffer); http.get({port: common.PORT}, function(res) { diff --git a/test/simple/test-repl-.save.load.js b/test/simple/test-repl-.save.load.js index b5749c8c7e..fdbf18fa0b 100644 --- a/test/simple/test-repl-.save.load.js +++ b/test/simple/test-repl-.save.load.js @@ -85,7 +85,7 @@ putIn.run(['.clear']); var loadFile = join(common.tmpDir, 'file.does.not.exist'); -// shold not break +// should not break putIn.write = function(data) { // make sure I get a failed to load message and not some crazy error assert.equal(data, 'Failed to load:' + loadFile + '\n'); diff --git a/test/simple/test-url.js b/test/simple/test-url.js index 215909eda3..89397bca67 100644 --- a/test/simple/test-url.js +++ b/test/simple/test-url.js @@ -1442,13 +1442,13 @@ relativeTests.forEach(function(relativeTest) { }); //format: [to, from, result] -// the test: ['.//g', 'f:/a', 'f://g'] is a fundimental problem +// the test: ['.//g', 'f:/a', 'f://g'] is a fundamental problem // url.parse('f:/a') does not have a host -// url.resolve('f:/a', './/g') does not have a host becuase you have moved +// url.resolve('f:/a', './/g') does not have a host because you have moved // down to the g directory. i.e. f: //g, however when this url is parsed // f:// will indicate that the host is g which is not the case. // it is unclear to me how to keep this information from being lost -// it may be that a pathname of ////g should colapse to /g but this seems +// it may be that a pathname of ////g should collapse to /g but this seems // to be a lot of work for an edge case. Right now I remove the test if (relativeTests2[181][0] === './/g' && relativeTests2[181][1] === 'f:/a' && diff --git a/test/simple/test-zlib-dictionary.js b/test/simple/test-zlib-dictionary.js index f3b1446071..58da810ccd 100644 --- a/test/simple/test-zlib-dictionary.js +++ b/test/simple/test-zlib-dictionary.js @@ -19,7 +19,7 @@ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. -// test compression/decompresion with dictionary +// test compression/decompression with dictionary var common = require('../common.js'); var assert = require('assert');