diff --git a/lib/url.js b/lib/url.js index 887f5c29ce..b1e0ff8da5 100644 --- a/lib/url.js +++ b/lib/url.js @@ -94,9 +94,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) {