| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ff71987 commit 95ab616
9 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -420,7 +420,7 @@ TLSSocket.prototype._init = function(socket, wrap) { | |||
| 420 | 420 | ||
| 421 | 421 | // lib/net.js expect this value to be non-zero if write hasn't been flushed | |
| 422 | 422 | // immediately | |
| 423 | - // TODO(indutny): rewise this solution, it might be 1 before handshake and | ||
| 423 | + // TODO(indutny): revise this solution, it might be 1 before handshake and | ||
| 424 | 424 | // represent real writeQueueSize during regular writes. | |
| 425 | 425 | ssl.writeQueueSize = 1; | |
| 426 | 426 | ||
@@ -723,7 +723,7 @@ TLSSocket.prototype.getProtocol = function() { | |||
| 723 | 723 | // outcomes: | |
| 724 | 724 | // | |
| 725 | 725 | // A) verifyError returns null meaning the client's certificate is signed | |
| 726 | - // by one of the server's CAs. The server know's the client idenity now | ||
| 726 | + // by one of the server's CAs. The server now knows the client's identity | ||
| 727 | 727 | // and the client is authorized. | |
| 728 | 728 | // | |
| 729 | 729 | // B) For some reason the client's certificate is not acceptable - | |
@@ -993,7 +993,7 @@ function normalizeConnectArgs(listArgs) { | |||
| 993 | 993 | var cb = args[1]; | |
| 994 | 994 | ||
| 995 | 995 | // If args[0] was options, then normalize dealt with it. | |
| 996 | - // If args[0] is port, or args[0], args[1] is host,port, we need to | ||
| 996 | + // If args[0] is port, or args[0], args[1] is host, port, we need to | ||
| 997 | 997 | // find the options and merge them in, normalize's options has only | |
| 998 | 998 | // the host/port/path args that it knows about, not the tls options. | |
| 999 | 999 | // This means that options.host overrides a host arg. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -119,7 +119,7 @@ function showFlaggedDeprecation() { | |||
| 119 | 119 | if (bufferWarn) { | |
| 120 | 120 | // This is a *pending* deprecation warning. It is not emitted by | |
| 121 | 121 | // default unless the --pending-deprecation command-line flag is | |
| 122 | - // used or the NODE_PENDING_DEPRECATION=1 envvar is set. | ||
| 122 | + // used or the NODE_PENDING_DEPRECATION=1 env var is set. | ||
| 123 | 123 | process.emitWarning(bufferWarning, 'DeprecationWarning', 'DEP0005'); | |
| 124 | 124 | bufferWarn = false; | |
| 125 | 125 | } | |
@@ -131,7 +131,7 @@ const doFlaggedDeprecation = | |||
| 131 | 131 | function() {}; | |
| 132 | 132 | ||
| 133 | 133 | /** | |
| 134 | - * The Buffer() construtor is deprecated in documentation and should not be | ||
| 134 | + * The Buffer() constructor is deprecated in documentation and should not be | ||
| 135 | 135 | * used moving forward. Rather, developers should use one of the three new | |
| 136 | 136 | * factory APIs: Buffer.from(), Buffer.allocUnsafe() or Buffer.alloc() based on | |
| 137 | 137 | * their specific needs. There is no runtime deprecation because of the extent | |
@@ -231,7 +231,7 @@ Buffer.alloc = function(size, fill, encoding) { | |||
| 231 | 231 | // Since we are filling anyway, don't zero fill initially. | |
| 232 | 232 | // Only pay attention to encoding if it's a string. This | |
| 233 | 233 | // prevents accidentally sending in a number that would | |
| 234 | - // be interpretted as a start offset. | ||
| 234 | + // be interpreted as a start offset. | ||
| 235 | 235 | if (typeof encoding !== 'string') | |
| 236 | 236 | encoding = undefined; | |
| 237 | 237 | return createUnsafeBuffer(size).fill(fill, encoding); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1620,7 +1620,7 @@ fs.realpathSync = function realpathSync(p, options) { | |||
| 1620 | 1620 | knownHard[base] = true; | |
| 1621 | 1621 | } | |
| 1622 | 1622 | ||
| 1623 | - // walk down the path, swapping out linked pathparts for their real | ||
| 1623 | + // walk down the path, swapping out linked path parts for their real | ||
| 1624 | 1624 | // values | |
| 1625 | 1625 | // NB: p.length changes. | |
| 1626 | 1626 | while (pos < p.length) { | |
@@ -1747,7 +1747,7 @@ fs.realpath = function realpath(p, options, callback) { | |||
| 1747 | 1747 | process.nextTick(LOOP); | |
| 1748 | 1748 | } | |
| 1749 | 1749 | ||
| 1750 | - // walk down the path, swapping out linked pathparts for their real | ||
| 1750 | + // walk down the path, swapping out linked path parts for their real | ||
| 1751 | 1751 | // values | |
| 1752 | 1752 | function LOOP() { | |
| 1753 | 1753 | // stop if scanned past end of path | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | 3 | const EventEmitter = require('events'); | |
| 4 | 4 | ||
| 5 | - // This object keep track of the socket there are sended | ||
| 5 | + // This object keeps track of the sockets that are sent | ||
| 6 | 6 | class SocketListSend extends EventEmitter { | |
| 7 | 7 | constructor(child, key) { | |
| 8 | 8 | super(); | |
@@ -52,7 +52,7 @@ class SocketListSend extends EventEmitter { | |||
| 52 | 52 | } | |
| 53 | 53 | ||
| 54 | 54 | ||
| 55 | - // This object keep track of the socket there are received | ||
| 55 | + // This object keeps track of the sockets that are received | ||
| 56 | 56 | class SocketListReceive extends EventEmitter { | |
| 57 | 57 | constructor(child, key) { | |
| 58 | 58 | super(); | |
@@ -93,7 +93,7 @@ class SocketListReceive extends EventEmitter { | |||
| 93 | 93 | add(obj) { | |
| 94 | 94 | this.connections++; | |
| 95 | 95 | ||
| 96 | - // Notify previous owner of socket about its state change | ||
| 96 | + // Notify the previous owner of the socket about its state change | ||
| 97 | 97 | obj.socket.once('close', () => { | |
| 98 | 98 | this.connections--; | |
| 99 | 99 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -137,7 +137,7 @@ function REPLServer(prompt, | |||
| 137 | 137 | ||
| 138 | 138 | if (breakEvalOnSigint && eval_) { | |
| 139 | 139 | // Allowing this would not reflect user expectations. | |
| 140 | - // breakEvalOnSigint affects only the behaviour of the default eval(). | ||
| 140 | + // breakEvalOnSigint affects only the behavior of the default eval(). | ||
| 141 | 141 | throw new Error('Cannot specify both breakEvalOnSigint and eval for REPL'); | |
| 142 | 142 | } | |
| 143 | 143 | ||
@@ -710,7 +710,7 @@ REPLServer.prototype.complete = function() { | |||
| 710 | 710 | function complete(line, callback) { | |
| 711 | 711 | // There may be local variables to evaluate, try a nested REPL | |
| 712 | 712 | if (this.bufferedCommand !== undefined && this.bufferedCommand.length) { | |
| 713 | - // Get a new array of inputed lines | ||
| 713 | + // Get a new array of inputted lines | ||
| 714 | 714 | var tmp = this.lines.slice(); | |
| 715 | 715 | // Kill off all function declarations to push all local variables into | |
| 716 | 716 | // global scope | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -467,7 +467,7 @@ exports.setTimeout = setTimeout; | |||
| 467 | 467 | function createSingleTimeout(callback, after, args) { | |
| 468 | 468 | after *= 1; // coalesce to number or NaN | |
| 469 | 469 | if (!(after >= 1 && after <= TIMEOUT_MAX)) | |
| 470 | - after = 1; // schedule on next tick, follows browser behaviour | ||
| 470 | + after = 1; // schedule on next tick, follows browser behavior | ||
| 471 | 471 | ||
| 472 | 472 | var timer = new Timeout(after, callback, args); | |
| 473 | 473 | if (process.domain) | |
@@ -556,7 +556,7 @@ exports.setInterval = function(callback, repeat, arg1, arg2, arg3) { | |||
| 556 | 556 | function createRepeatTimeout(callback, repeat, args) { | |
| 557 | 557 | repeat *= 1; // coalesce to number or NaN | |
| 558 | 558 | if (!(repeat >= 1 && repeat <= TIMEOUT_MAX)) | |
| 559 | - repeat = 1; // schedule on next tick, follows browser behaviour | ||
| 559 | + repeat = 1; // schedule on next tick, follows browser behavior | ||
| 560 | 560 | ||
| 561 | 561 | var timer = new Timeout(repeat, callback, args); | |
| 562 | 562 | timer._repeat = repeat; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -32,7 +32,7 @@ const { isUint8Array } = process.binding('util'); | |||
| 32 | 32 | ||
| 33 | 33 | // Allow {CLIENT_RENEG_LIMIT} client-initiated session renegotiations | |
| 34 | 34 | // every {CLIENT_RENEG_WINDOW} seconds. An error event is emitted if more | |
| 35 | - // renegotations are seen. The settings are applied to all remote client | ||
| 35 | + // renegotiations are seen. The settings are applied to all remote client | ||
| 36 | 36 | // connections. | |
| 37 | 37 | exports.CLIENT_RENEG_LIMIT = 3; | |
| 38 | 38 | exports.CLIENT_RENEG_WINDOW = 600; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -77,7 +77,7 @@ function WriteStream(fd) { | |||
| 77 | 77 | ||
| 78 | 78 | // Prevents interleaved or dropped stdout/stderr output for terminals. | |
| 79 | 79 | // As noted in the following reference, local TTYs tend to be quite fast and | |
| 80 | - // this behaviour has become expected due historical functionality on OS X, | ||
| 80 | + // this behavior has become expected due historical functionality on OS X, | ||
| 81 | 81 | // even though it was originally intended to change in v1.0.2 (Libuv 1.2.1). | |
| 82 | 82 | // Ref: https://github.com/nodejs/node/pull/1771#issuecomment-119351671 | |
| 83 | 83 | this._handle.setBlocking(true); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -449,7 +449,7 @@ function autoEscapeStr(rest) { | |||
| 449 | 449 | var lastEscapedPos = 0; | |
| 450 | 450 | for (var i = 0; i < rest.length; ++i) { | |
| 451 | 451 | // Manual switching is faster than using a Map/Object. | |
| 452 | - // `escaped` contains substring up to the last escaped cahracter. | ||
| 452 | + // `escaped` contains substring up to the last escaped character. | ||
| 453 | 453 | switch (rest.charCodeAt(i)) { | |
| 454 | 454 | case 9: // '\t' | |
| 455 | 455 | // Concat if there are ordinary characters in the middle. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments