-
-
Notifications
You must be signed in to change notification settings - Fork 234
Open
Description
ERR_MULTIPLE_CALLBACK is an Error subclass (eventually) defined here:
readable-stream/lib/ours/errors.js
Lines 70 to 97 in a2e9aed
| class NodeError extends Base { | |
| constructor(...args) { | |
| super(getMessage(code, message, args)) | |
| } | |
| toString() { | |
| return `${this.name} [${code}]: ${this.message}` | |
| } | |
| } | |
| Object.defineProperties(NodeError.prototype, { | |
| name: { | |
| value: Base.name, | |
| writable: true, | |
| enumerable: false, | |
| configurable: true | |
| }, | |
| toString: { | |
| value() { | |
| return `${this.name} [${code}]: ${this.message}` | |
| }, | |
| writable: true, | |
| enumerable: false, | |
| configurable: true | |
| } | |
| }) | |
| NodeError.prototype.code = code | |
| NodeError.prototype[kIsNodeError] = true | |
| codes[code] = NodeError | |
| } |
In this line, ERR_MULTIPLE_CALLBACK is called instead of constructed:
| errorOrDestroy(stream, err !== null && err !== undefined ? err : ERR_MULTIPLE_CALLBACK()) |
I ran into this in a difficult to isolate scenario
Metadata
Metadata
Assignees
Labels
No labels
