diff options
Diffstat (limited to 'lib/url.js')
-rw-r--r-- | lib/url.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/url.js b/lib/url.js index 2b7dd6e532..57f04d5f3f 100644 --- a/lib/url.js +++ b/lib/url.js @@ -547,7 +547,7 @@ function urlFormat(obj, options) { obj = urlParse(obj); } else if (typeof obj !== 'object' || obj === null) { throw new TypeError('Parameter "urlObj" must be an object, not ' + - obj === null ? 'null' : typeof obj); + (obj === null ? 'null' : typeof obj)); } else if (!(obj instanceof Url)) { var format = obj[internalUrl.formatSymbol]; return format ? |