According to the Node.js docs stream implementations should override _destroy and not destroy as you have, and they should accept a second parameter which is a callback. Without the callback, async iteration breaks.
I can contribute a PR unless there's a reason the spec hasn't been followed?
According to the Node.js docs stream implementations should override
_destroyand notdestroyas you have, and they should accept a second parameter which is a callback. Without the callback, async iteration breaks.I can contribute a PR unless there's a reason the spec hasn't been followed?