@@ -89,7 +89,7 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost){
8989if ( typeof url !== 'string' ) {
9090throw new TypeError ( "Parameter 'url' must be a string, not " + typeof url ) ;
9191}
92-
92+ var i , j , k , l ;
9393// Copy chrome, IE, opera backslash-handling behavior.
9494// Back slashes before the query string get converted to forward slashes
9595// See: https://code.google.com/p/chromium/issues/detail?id=25916
@@ -169,7 +169,7 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost){
169169
170170// find the first instance of any hostEndingChars
171171var hostEnd = - 1 ;
172- for ( let i = 0 ; i < hostEndingChars . length ; i ++ ) {
172+ for ( i = 0 ; i < hostEndingChars . length ; i ++ ) {
173173const hec = rest . indexOf ( hostEndingChars [ i ] ) ;
174174if ( hec !== - 1 && ( hostEnd === - 1 || hec < hostEnd ) )
175175hostEnd = hec ;
@@ -197,7 +197,7 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost){
197197
198198// the host is the remaining to the left of the first non-host char
199199hostEnd = - 1 ;
200- for ( let i = 0 ; i < nonHostChars . length ; i ++ ) {
200+ for ( i = 0 ; i < nonHostChars . length ; i ++ ) {
201201const hec = rest . indexOf ( nonHostChars [ i ] ) ;
202202if ( hec !== - 1 && ( hostEnd === - 1 || hec < hostEnd ) )
203203hostEnd = hec ;
@@ -224,12 +224,12 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost){
224224// validate a little.
225225if ( ! ipv6Hostname ) {
226226var 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 ++ ) {
228228var part = hostparts [ i ] ;
229229if ( ! part ) continue ;
230230if ( ! part . match ( hostnamePartPattern ) ) {
231231var newpart = '' ;
232- for ( let j = 0 , k = part . length ; j < k ; j ++ ) {
232+ for ( j = 0 , k = part . length ; j < k ; j ++ ) {
233233if ( part . charCodeAt ( j ) > 127 ) {
234234// we replace non-ASCII char with a temporary placeholder
235235// we need this to make sure size of hostname is not
@@ -294,7 +294,7 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost){
294294// First, make 100% sure that any "autoEscape" chars get
295295// escaped, even if encodeURIComponent doesn't think they
296296// need to be.
297- for ( let i = 0 , l = autoEscape . length ; i < l ; i ++ ) {
297+ for ( i = 0 , l = autoEscape . length ; i < l ; i ++ ) {
298298var ae = autoEscape [ i ] ;
299299if ( rest . indexOf ( ae ) === - 1 )
300300continue ;
0 commit comments