| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -303,7 +303,7 @@ function inherits(ctor, superCtor) { | |||
| 303 | 303 | ||
| 304 | 304 | if (superCtor.prototype === undefined) { | |
| 305 | 305 | throw new ERR_INVALID_ARG_TYPE('superCtor.prototype', | |
| 306 | - 'Function', superCtor.prototype); | ||
| 306 | + 'Object', superCtor.prototype); | ||
| 307 | 307 | } | |
| 308 | 308 | Object.defineProperty(ctor, 'super_', { | |
| 309 | 309 | value: superCtor, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -88,7 +88,7 @@ common.expectsError(function() { | |||
| 88 | 88 | }, { | |
| 89 | 89 | code: 'ERR_INVALID_ARG_TYPE', | |
| 90 | 90 | type: TypeError, | |
| 91 | - message: 'The "superCtor.prototype" property must be of type Function. ' + | ||
| 91 | + message: 'The "superCtor.prototype" property must be of type Object. ' + | ||
| 92 | 92 | 'Received type undefined' | |
| 93 | 93 | }); | |
| 94 | 94 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments