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 204efe4 commit 32d043bCopy full SHA for 32d043b
lib/replyError.js
@@ -7,20 +7,17 @@ function ReplyError (message) {
7
Error.stackTraceLimit = 2
8
Error.captureStackTrace(this, this.constructor)
9
Error.stackTraceLimit = limit
10
- Object.defineProperty(this, 'name', {
11
- value: 'ReplyError',
12
- configurable: false,
13
- enumerable: false,
14
- writable: true
15
- })
16
Object.defineProperty(this, 'message', {
17
value: message || '',
18
19
20
writable: true
21
})
22
}
23
24
util.inherits(ReplyError, Error)
25
+Object.defineProperty(ReplyError.prototype, 'name', {
+ value: 'ReplyError',
+ writable: true
+})
+
26
module.exports = ReplyError
0 commit comments