Skip to content

Commit c1dee6a

Browse files
pvsousalimafhinkel
authored andcommitted
url: name anonymous functions in url
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]>
1 parent 9ac363b commit c1dee6a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/url.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function urlParse(url, parseQueryString, slashesDenoteHost) {
9797
return u;
9898
}
9999

100-
Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
100+
Url.prototype.parse = function parse(url, parseQueryString, slashesDenoteHost) {
101101
if (typeof url !== 'string') {
102102
throw new TypeError('Parameter "url" must be a string, not ' + typeof url);
103103
}
@@ -567,7 +567,7 @@ function urlFormat(obj, options) {
567567
return obj.format();
568568
}
569569

570-
Url.prototype.format = function() {
570+
Url.prototype.format = function format() {
571571
var auth = this.auth || '';
572572
if (auth) {
573573
auth = encodeAuth(auth);
@@ -652,7 +652,7 @@ function urlResolve(source, relative) {
652652
return urlParse(source, false, true).resolve(relative);
653653
}
654654

655-
Url.prototype.resolve = function(relative) {
655+
Url.prototype.resolve = function resolve(relative) {
656656
return this.resolveObject(urlParse(relative, false, true)).format();
657657
};
658658

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

664-
Url.prototype.resolveObject = function(relative) {
664+
Url.prototype.resolveObject = function resolveObject(relative) {
665665
if (typeof relative === 'string') {
666666
var rel = new Url();
667667
rel.parse(relative, false, true);
@@ -939,7 +939,7 @@ Url.prototype.resolveObject = function(relative) {
939939
return result;
940940
};
941941

942-
Url.prototype.parseHost = function() {
942+
Url.prototype.parseHost = function parseHost() {
943943
var host = this.host;
944944
var port = portPattern.exec(host);
945945
if (port) {

0 commit comments

Comments
 (0)