Skip to content

Commit 126dcb7

Browse files
pvsousalimaMylesBorins
authored andcommittedMar 28, 2017
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 41284fb commit 126dcb7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎lib/url.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function urlParse(url, parseQueryString, slashesDenoteHost) {
7676
return u;
7777
}
7878

79-
Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
79+
Url.prototype.parse = function parse(url, parseQueryString, slashesDenoteHost) {
8080
if (typeof url !== 'string') {
8181
throw new TypeError('Parameter "url" must be a string, not ' + typeof url);
8282
}
@@ -557,7 +557,7 @@ function urlFormat(obj, options) {
557557
return obj.format();
558558
}
559559

560-
Url.prototype.format = function() {
560+
Url.prototype.format = function format() {
561561
var auth = this.auth || '';
562562
if (auth) {
563563
auth = encodeAuth(auth);
@@ -642,7 +642,7 @@ function urlResolve(source, relative) {
642642
return urlParse(source, false, true).resolve(relative);
643643
}
644644

645-
Url.prototype.resolve = function(relative) {
645+
Url.prototype.resolve = function resolve(relative) {
646646
return this.resolveObject(urlParse(relative, false, true)).format();
647647
};
648648

@@ -651,7 +651,7 @@ function urlResolveObject(source, relative) {
651651
return urlParse(source, false, true).resolveObject(relative);
652652
}
653653

654-
Url.prototype.resolveObject = function(relative) {
654+
Url.prototype.resolveObject = function resolveObject(relative) {
655655
if (typeof relative === 'string') {
656656
var rel = new Url();
657657
rel.parse(relative, false, true);
@@ -929,7 +929,7 @@ Url.prototype.resolveObject = function(relative) {
929929
return result;
930930
};
931931

932-
Url.prototype.parseHost = function() {
932+
Url.prototype.parseHost = function parseHost() {
933933
var host = this.host;
934934
var port = portPattern.exec(host);
935935
if (port) {

0 commit comments

Comments
 (0)
Please sign in to comment.