Skip to content
Permalink
Browse files

util: fixes type in argument type validation error

PR-URL: #25103
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information...
aoberoi authored and addaleax committed Dec 18, 2018
1 parent 067d38f commit 71432c3d0680721d1c674765c32e902a25598757
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/util.js
  2. +1 −1 test/parallel/test-util-inherits.js
@@ -303,7 +303,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,
@@ -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'
});

0 comments on commit 71432c3

Please sign in to comment.
You can’t perform that action at this time.