diff --git a/lib/url.js b/lib/url.js index d754fea3b25359..f8f21c3ffcb6d1 100644 --- a/lib/url.js +++ b/lib/url.js @@ -92,9 +92,9 @@ const querystring = require('querystring'); function urlParse(url, parseQueryString, slashesDenoteHost) { if (url instanceof Url) return url; - var u = new Url(); - u.parse(url, parseQueryString, slashesDenoteHost); - return u; + var urlObject = new Url(); + urlObject.parse(url, parseQueryString, slashesDenoteHost); + return urlObject; } Url.prototype.parse = function parse(url, parseQueryString, slashesDenoteHost) {