readable-stream
readable-stream copied to clipboard
Is `ERR_MULTIPLE_CALLBACK` missing a `new`?
ERR_MULTIPLE_CALLBACK
is an Error
subclass (eventually) defined here:
https://github.com/nodejs/readable-stream/blob/a2e9aedf4aeee4a5e4d8efcb175edb67e2817eaa/lib/ours/errors.js#L70-L97
In this line, ERR_MULTIPLE_CALLBACK
is called instead of constructed:
https://github.com/nodejs/readable-stream/blob/a2e9aedf4aeee4a5e4d8efcb175edb67e2817eaa/lib/internal/streams/writable.js#L594
I ran into this in a difficult to isolate scenario