summaryrefslogtreecommitdiff
path: root/lib/url.js
diff options
context:
space:
mode:
authorDavidCai <davidcai1993@yahoo.com>2017-02-04 21:39:20 +0800
committerJames M Snell <jasnell@gmail.com>2017-02-11 13:59:34 -0800
commit78182458e6055515ac342f743aacb79bd3af2edc (patch)
tree06dd25cc76d8c5eb56c9bfc076c7ac5304f43683 /lib/url.js
parent5f20d62c8fd89379b35bfa4610ff34551b4f1892 (diff)
downloadandroid-node-v8-78182458e6055515ac342f743aacb79bd3af2edc.tar.gz
android-node-v8-78182458e6055515ac342f743aacb79bd3af2edc.tar.bz2
android-node-v8-78182458e6055515ac342f743aacb79bd3af2edc.zip
url: fix error message of url.format
PR-URL: https://github.com/nodejs/node/pull/11162 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Diffstat (limited to 'lib/url.js')
-rw-r--r--lib/url.js2
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 ?