Skip to content

Commit

Permalink
url: name anonymous functions in url
Browse files Browse the repository at this point in the history
Name anonymous functions in url.js.

PR-URL: #9225
Ref: #8913
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Franziska Hinkelmann <[email protected]>
  • Loading branch information
pvsousalima authored and fhinkel committed Mar 26, 2017
1 parent 9ac363b commit c1dee6a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function urlParse(url, parseQueryString, slashesDenoteHost) {
return u;
}

Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
Url.prototype.parse = function parse(url, parseQueryString, slashesDenoteHost) {
if (typeof url !== 'string') {
throw new TypeError('Parameter "url" must be a string, not ' + typeof url);
}
Expand Down Expand Up @@ -567,7 +567,7 @@ function urlFormat(obj, options) {
return obj.format();
}

Url.prototype.format = function() {
Url.prototype.format = function format() {
var auth = this.auth || '';
if (auth) {
auth = encodeAuth(auth);
Expand Down Expand Up @@ -652,7 +652,7 @@ function urlResolve(source, relative) {
return urlParse(source, false, true).resolve(relative);
}

Url.prototype.resolve = function(relative) {
Url.prototype.resolve = function resolve(relative) {
return this.resolveObject(urlParse(relative, false, true)).format();
};

Expand All @@ -661,7 +661,7 @@ function urlResolveObject(source, relative) {
return urlParse(source, false, true).resolveObject(relative);
}

Url.prototype.resolveObject = function(relative) {
Url.prototype.resolveObject = function resolveObject(relative) {
if (typeof relative === 'string') {
var rel = new Url();
rel.parse(relative, false, true);
Expand Down Expand Up @@ -939,7 +939,7 @@ Url.prototype.resolveObject = function(relative) {
return result;
};

Url.prototype.parseHost = function() {
Url.prototype.parseHost = function parseHost() {
var host = this.host;
var port = portPattern.exec(host);
if (port) {
Expand Down

0 comments on commit c1dee6a

Please sign in to comment.