@@ -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 ;
0 commit comments