@@ -76,7 +76,7 @@ function urlParse(url, parseQueryString, slashesDenoteHost){
7676return u ;
7777}
7878
79- Url . prototype . parse = function ( url , parseQueryString , slashesDenoteHost ) {
79+ Url . prototype . parse = function parse ( url , parseQueryString , slashesDenoteHost ) {
8080if ( typeof url !== 'string' ) {
8181throw new TypeError ( 'Parameter "url" must be a string, not ' + typeof url ) ;
8282}
@@ -557,7 +557,7 @@ function urlFormat(obj, options){
557557return obj . format ( ) ;
558558}
559559
560- Url . prototype . format = function ( ) {
560+ Url . prototype . format = function format ( ) {
561561var auth = this . auth || '' ;
562562if ( auth ) {
563563auth = encodeAuth ( auth ) ;
@@ -642,7 +642,7 @@ function urlResolve(source, relative){
642642return urlParse ( source , false , true ) . resolve ( relative ) ;
643643}
644644
645- Url . prototype . resolve = function ( relative ) {
645+ Url . prototype . resolve = function resolve ( relative ) {
646646return this . resolveObject ( urlParse ( relative , false , true ) ) . format ( ) ;
647647} ;
648648
@@ -651,7 +651,7 @@ function urlResolveObject(source, relative){
651651return urlParse ( source , false , true ) . resolveObject ( relative ) ;
652652}
653653
654- Url . prototype . resolveObject = function ( relative ) {
654+ Url . prototype . resolveObject = function resolveObject ( relative ) {
655655if ( typeof relative === 'string' ) {
656656var rel = new Url ( ) ;
657657rel . parse ( relative , false , true ) ;
@@ -929,7 +929,7 @@ Url.prototype.resolveObject = function(relative){
929929return result ;
930930} ;
931931
932- Url . prototype . parseHost = function ( ) {
932+ Url . prototype . parseHost = function parseHost ( ) {
933933var host = this . host ;
934934var port = portPattern . exec ( host ) ;
935935if ( port ) {
0 commit comments