| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 84849f1 commit 4238460
5 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -654,14 +654,14 @@ Readable.prototype.unpipe = function(dest) { | |||
| 654 | 654 | state.pipesCount = 0; | |
| 655 | 655 | state.flowing = false; | |
| 656 | 656 | ||
| 657 | - for (let i = 0; i < len; i++) | ||
| 657 | + for (var i = 0; i < len; i++) | ||
| 658 | 658 | dests[i].emit('unpipe', this); | |
| 659 | 659 | return this; | |
| 660 | 660 | } | |
| 661 | 661 | ||
| 662 | 662 | // try to find the right one. | |
| 663 | - const i = state.pipes.indexOf(dest); | ||
| 664 | - if (i === -1) | ||
| 663 | + const index = state.pipes.indexOf(dest); | ||
| 664 | + if (index === -1) | ||
| 665 | 665 | return this; | |
| 666 | 666 | ||
| 667 | 667 | state.pipes.splice(i, 1); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,6 +34,8 @@ exports.SecureContext = SecureContext; | |||
| 34 | 34 | ||
| 35 | 35 | exports.createSecureContext = function createSecureContext(options, context) { | |
| 36 | 36 | if (!options) options = {}; | |
| 37 | + var i; | ||
| 38 | + var len; | ||
| 37 | 39 | ||
| 38 | 40 | var secureOptions = options.secureOptions; | |
| 39 | 41 | if (options.honorCipherOrder) | |
@@ -47,7 +49,7 @@ exports.createSecureContext = function createSecureContext(options, context) { | |||
| 47 | 49 | // cert's issuer in C++ code. | |
| 48 | 50 | if (options.ca) { | |
| 49 | 51 | if (Array.isArray(options.ca)) { | |
| 50 | - for (let i = 0, len = options.ca.length; i < len; i++) { | ||
| 52 | + for (i = 0, len = options.ca.length; i < len; i++) { | ||
| 51 | 53 | c.context.addCACert(options.ca[i]); | |
| 52 | 54 | } | |
| 53 | 55 | } else { | |
@@ -59,7 +61,7 @@ exports.createSecureContext = function createSecureContext(options, context) { | |||
| 59 | 61 | ||
| 60 | 62 | if (options.cert) { | |
| 61 | 63 | if (Array.isArray(options.cert)) { | |
| 62 | - for (let i = 0; i < options.cert.length; i++) | ||
| 64 | + for (i = 0; i < options.cert.length; i++) | ||
| 63 | 65 | c.context.setCert(options.cert[i]); | |
| 64 | 66 | } else { | |
| 65 | 67 | c.context.setCert(options.cert); | |
@@ -72,7 +74,7 @@ exports.createSecureContext = function createSecureContext(options, context) { | |||
| 72 | 74 | // which leads to the crash later on. | |
| 73 | 75 | if (options.key) { | |
| 74 | 76 | if (Array.isArray(options.key)) { | |
| 75 | - for (let i = 0; i < options.key.length; i++) { | ||
| 77 | + for (i = 0; i < options.key.length; i++) { | ||
| 76 | 78 | var key = options.key[i]; | |
| 77 | 79 | ||
| 78 | 80 | if (key.passphrase) | |
@@ -103,7 +105,7 @@ exports.createSecureContext = function createSecureContext(options, context) { | |||
| 103 | 105 | ||
| 104 | 106 | if (options.crl) { | |
| 105 | 107 | if (Array.isArray(options.crl)) { | |
| 106 | - for (let i = 0, len = options.crl.length; i < len; i++) { | ||
| 108 | + for (i = 0, len = options.crl.length; i < len; i++) { | ||
| 107 | 109 | c.context.addCRL(options.crl[i]); | |
| 108 | 110 | } | |
| 109 | 111 | } else { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -286,7 +286,7 @@ function REPLServer(prompt, | |||
| 286 | 286 | ||
| 287 | 287 | // After executing the current expression, store the values of RegExp | |
| 288 | 288 | // predefined properties back in `savedRegExMatches` | |
| 289 | - for (let idx = 1; idx < savedRegExMatches.length; idx += 1) { | ||
| 289 | + for (var idx = 1; idx < savedRegExMatches.length; idx += 1) { | ||
| 290 | 290 | savedRegExMatches[idx] = RegExp[`$${idx}`]; | |
| 291 | 291 | } | |
| 292 | 292 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -90,7 +90,7 @@ function check(hostParts, pattern, wildcards) { | |||
| 90 | 90 | return false; | |
| 91 | 91 | ||
| 92 | 92 | // Check host parts from right to left first. | |
| 93 | - for (let i = hostParts.length - 1; i > 0; i -= 1) | ||
| 93 | + for (var i = hostParts.length - 1; i > 0; i -= 1) | ||
| 94 | 94 | if (hostParts[i] !== patternParts[i]) | |
| 95 | 95 | return false; | |
| 96 | 96 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -89,7 +89,7 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) { | |||
| 89 | 89 | if (typeof url !== 'string') { | |
| 90 | 90 | throw new TypeError("Parameter 'url' must be a string, not " + typeof url); | |
| 91 | 91 | } | |
| 92 | - | ||
| 92 | + var i, j, k, l; | ||
| 93 | 93 | // Copy chrome, IE, opera backslash-handling behavior. | |
| 94 | 94 | // Back slashes before the query string get converted to forward slashes | |
| 95 | 95 | // See: https://code.google.com/p/chromium/issues/detail?id=25916 | |
@@ -169,7 +169,7 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) { | |||
| 169 | 169 | ||
| 170 | 170 | // find the first instance of any hostEndingChars | |
| 171 | 171 | var hostEnd = -1; | |
| 172 | - for (let i = 0; i < hostEndingChars.length; i++) { | ||
| 172 | + for (i = 0; i < hostEndingChars.length; i++) { | ||
| 173 | 173 | const hec = rest.indexOf(hostEndingChars[i]); | |
| 174 | 174 | if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) | |
| 175 | 175 | hostEnd = hec; | |
@@ -197,7 +197,7 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) { | |||
| 197 | 197 | ||
| 198 | 198 | // the host is the remaining to the left of the first non-host char | |
| 199 | 199 | hostEnd = -1; | |
| 200 | - for (let i = 0; i < nonHostChars.length; i++) { | ||
| 200 | + for (i = 0; i < nonHostChars.length; i++) { | ||
| 201 | 201 | const hec = rest.indexOf(nonHostChars[i]); | |
| 202 | 202 | if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) | |
| 203 | 203 | hostEnd = hec; | |
@@ -224,12 +224,12 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) { | |||
| 224 | 224 | // validate a little. | |
| 225 | 225 | if (!ipv6Hostname) { | |
| 226 | 226 | var hostparts = this.hostname.split(/\./); | |
| 227 | - for (let i = 0, l = hostparts.length; i < l; i++) { | ||
| 227 | + for (i = 0, l = hostparts.length; i < l; i++) { | ||
| 228 | 228 | var part = hostparts[i]; | |
| 229 | 229 | if (!part) continue; | |
| 230 | 230 | if (!part.match(hostnamePartPattern)) { | |
| 231 | 231 | var newpart = ''; | |
| 232 | - for (let j = 0, k = part.length; j < k; j++) { | ||
| 232 | + for (j = 0, k = part.length; j < k; j++) { | ||
| 233 | 233 | if (part.charCodeAt(j) > 127) { | |
| 234 | 234 | // we replace non-ASCII char with a temporary placeholder | |
| 235 | 235 | // we need this to make sure size of hostname is not | |
@@ -294,7 +294,7 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) { | |||
| 294 | 294 | // First, make 100% sure that any "autoEscape" chars get | |
| 295 | 295 | // escaped, even if encodeURIComponent doesn't think they | |
| 296 | 296 | // need to be. | |
| 297 | - for (let i = 0, l = autoEscape.length; i < l; i++) { | ||
| 297 | + for (i = 0, l = autoEscape.length; i < l; i++) { | ||
| 298 | 298 | var ae = autoEscape[i]; | |
| 299 | 299 | if (rest.indexOf(ae) === -1) | |
| 300 | 300 | continue; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments