We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 206aa2c commit d2fe4f3Copy full SHA for d2fe4f3
index.js
@@ -111,7 +111,9 @@ function createError () {
111
112
function createHttpErrorConstructor () {
113
function HttpError () {
114
- throw new TypeError('cannot construct abstract class')
+ if (this.constructor === HttpError) {
115
+ throw new TypeError('cannot construct abstract class')
116
+ }
117
}
118
119
inherits(HttpError, Error)
0 commit comments