summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/util.js2
-rw-r--r--test/parallel/test-util-inherits.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/util.js b/lib/util.js
index 6333dcc8ba..43e2c01301 100644
--- a/lib/util.js
+++ b/lib/util.js
@@ -302,7 +302,7 @@ function inherits(ctor, superCtor) {
if (superCtor.prototype === undefined) {
throw new ERR_INVALID_ARG_TYPE('superCtor.prototype',
- 'Function', superCtor.prototype);
+ 'Object', superCtor.prototype);
}
Object.defineProperty(ctor, 'super_', {
value: superCtor,
diff --git a/test/parallel/test-util-inherits.js b/test/parallel/test-util-inherits.js
index 9bbb4352dc..ed0800c33c 100644
--- a/test/parallel/test-util-inherits.js
+++ b/test/parallel/test-util-inherits.js
@@ -88,7 +88,7 @@ common.expectsError(function() {
}, {
code: 'ERR_INVALID_ARG_TYPE',
type: TypeError,
- message: 'The "superCtor.prototype" property must be of type Function. ' +
+ message: 'The "superCtor.prototype" property must be of type Object. ' +
'Received type undefined'
});