| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c63687d commit 955c90d
30 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,10 +12,10 @@ var bench = common.createBenchmark(main, { | |||
| 12 | 12 | millions: [1] | |
| 13 | 13 | }); | |
| 14 | 14 | ||
| 15 | - const INT8 = 0x7f; | ||
| 16 | - const INT16 = 0x7fff; | ||
| 17 | - const INT32 = 0x7fffffff; | ||
| 18 | - const UINT8 = (INT8 * 2) + 1; | ||
| 15 | + const INT8 = 0x7f; | ||
| 16 | + const INT16 = 0x7fff; | ||
| 17 | + const INT32 = 0x7fffffff; | ||
| 18 | + const UINT8 = (INT8 * 2) + 1; | ||
| 19 | 19 | const UINT16 = (INT16 * 2) + 1; | |
| 20 | 20 | const UINT32 = INT32; | |
| 21 | 21 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,10 +10,10 @@ var bench = common.createBenchmark(main, { | |||
| 10 | 10 | millions: [1] | |
| 11 | 11 | }); | |
| 12 | 12 | ||
| 13 | - const INT8 = 0x7f; | ||
| 14 | - const INT16 = 0x7fff; | ||
| 15 | - const INT32 = 0x7fffffff; | ||
| 16 | - const UINT8 = INT8 * 2; | ||
| 13 | + const INT8 = 0x7f; | ||
| 14 | + const INT16 = 0x7fff; | ||
| 15 | + const INT32 = 0x7fffffff; | ||
| 16 | + const UINT8 = INT8 * 2; | ||
| 17 | 17 | const UINT16 = INT16 * 2; | |
| 18 | 18 | const UINT32 = INT32 * 2; | |
| 19 | 19 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -133,7 +133,7 @@ function setupHistory(repl, historyPath, oldHistoryPath, ready) { | |||
| 133 | 133 | `the new one i.e., ${historyPath} and is empty.\nUsing it as is.\n`); | |
| 134 | 134 | repl._refreshLine(); | |
| 135 | 135 | ||
| 136 | - } else if (oldHistoryPath) { | ||
| 136 | + } else if (oldHistoryPath) { | ||
| 137 | 137 | // Grab data from the older pre-v3.0 JSON NODE_REPL_HISTORY_FILE format. | |
| 138 | 138 | repl._writeToOutput( | |
| 139 | 139 | '\nConverting old JSON repl history to line-separated history.\n' + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -779,7 +779,7 @@ const win32 = { | |||
| 779 | 779 | end = i; | |
| 780 | 780 | break; | |
| 781 | 781 | } | |
| 782 | - } else { | ||
| 782 | + } else { | ||
| 783 | 783 | // We saw the first non-path separator | |
| 784 | 784 | matchedSlash = false; | |
| 785 | 785 | } | |
@@ -1335,7 +1335,7 @@ const posix = { | |||
| 1335 | 1335 | end = i; | |
| 1336 | 1336 | break; | |
| 1337 | 1337 | } | |
| 1338 | - } else { | ||
| 1338 | + } else { | ||
| 1339 | 1339 | // We saw the first non-path separator | |
| 1340 | 1340 | matchedSlash = false; | |
| 1341 | 1341 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -58,7 +58,7 @@ QueryString.unescapeBuffer = function(s, decodeSpaces) { | |||
| 58 | 58 | case 2: // Second hex digit | |
| 59 | 59 | state = 0; | |
| 60 | 60 | if (c >= 48/*0*/ && c <= 57/*9*/) { | |
| 61 | - m = c - 48/*0*/; | ||
| 61 | + m = c - 48/*0*/; | ||
| 62 | 62 | } else if (c >= 65/*A*/ && c <= 70/*F*/) { | |
| 63 | 63 | m = c - 65/*A*/ + 10; | |
| 64 | 64 | } else if (c >= 97/*a*/ && c <= 102/*f*/) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -156,7 +156,7 @@ class LineParser { | |||
| 156 | 156 | ||
| 157 | 157 | this.shouldFail = this.shouldFail || | |
| 158 | 158 | ((!this._literal && lastChar === '\\') || | |
| 159 | - (this._literal && lastChar !== '\\')); | ||
| 159 | + (this._literal && lastChar !== '\\')); | ||
| 160 | 160 | ||
| 161 | 161 | return line; | |
| 162 | 162 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -50,7 +50,7 @@ function convertProtocols(protocols) { | |||
| 50 | 50 | return buff; | |
| 51 | 51 | } | |
| 52 | 52 | ||
| 53 | - exports.convertNPNProtocols = function(protocols, out) { | ||
| 53 | + exports.convertNPNProtocols = function(protocols, out) { | ||
| 54 | 54 | // If protocols is Array - translate it into buffer | |
| 55 | 55 | if (Array.isArray(protocols)) { | |
| 56 | 56 | protocols = convertProtocols(protocols); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,13 +22,13 @@ check(64, 1, 0); | |||
| 22 | 22 | check(97, 1, 0); | |
| 23 | 23 | ||
| 24 | 24 | // Buffers can be unaligned | |
| 25 | - check(64, 8, 0); | ||
| 25 | + check(64, 8, 0); | ||
| 26 | 26 | check(64, 16, 0); | |
| 27 | - check(64, 8, 1); | ||
| 27 | + check(64, 8, 1); | ||
| 28 | 28 | check(64, 16, 1); | |
| 29 | - check(97, 8, 1); | ||
| 29 | + check(97, 8, 1); | ||
| 30 | 30 | check(97, 16, 1); | |
| 31 | - check(97, 8, 3); | ||
| 31 | + check(97, 8, 3); | ||
| 32 | 32 | check(97, 16, 3); | |
| 33 | 33 | ||
| 34 | 34 | // Empty ArrayBuffer does not allocate data, worth checking | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,7 +6,7 @@ function serverHandler(req, res) { | |||
| 6 | 6 | res.connection.destroy(); | |
| 7 | 7 | } | |
| 8 | 8 | ||
| 9 | - const http = require('http'); | ||
| 9 | + const http = require('http'); | ||
| 10 | 10 | const weak = require('weak'); | |
| 11 | 11 | const common = require('../common'); | |
| 12 | 12 | const assert = require('assert'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1023,7 +1023,7 @@ Buffer.from(Buffer.allocUnsafe(0), 0, 0); | |||
| 1023 | 1023 | [ 'utf9', | |
| 1024 | 1024 | 'utf-7', | |
| 1025 | 1025 | 'Unicode-FTW', | |
| 1026 | - 'new gnu gun' ].forEach(function(enc) { | ||
| 1026 | + 'new gnu gun' ].forEach(function(enc) { | ||
| 1027 | 1027 | assert.equal(Buffer.isEncoding(enc), false); | |
| 1028 | 1028 | }); | |
| 1029 | 1029 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments