summaryrefslogtreecommitdiff
path: root/lib/internal/url.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/url.js')
-rw-r--r--lib/internal/url.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/internal/url.js b/lib/internal/url.js
index 044d8b96a7..89087b750d 100644
--- a/lib/internal/url.js
+++ b/lib/internal/url.js
@@ -372,7 +372,7 @@ Object.defineProperties(URL.prototype, {
// eslint-disable-next-line func-name-matching
value: function format(options) {
if (options && typeof options !== 'object')
- throw new errors.TypeError('ERR_INVALID_ARG_TYPE', 'options', 'object');
+ throw new errors.TypeError('ERR_INVALID_ARG_TYPE', 'options', 'Object');
options = util._extend({
fragment: true,
unicode: false,