Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The error event is not cleaned up on successful read #36

Closed
szmarczak opened this issue Apr 22, 2020 · 2 comments
Closed

The error event is not cleaned up on successful read #36

szmarczak opened this issue Apr 22, 2020 · 2 comments

Comments

@szmarczak
Copy link

const getStream = require('get-stream');
const {Readable} = require('stream');

const stream = new Readable({
    read() {
        this.push('chunk');
        this.push(null);
    }
});

const buffer = await getStream.buffer(stream);

console.log(stream.listenerCount('error')); // => 1
@szmarczak
Copy link
Author

szmarczak commented Apr 22, 2020

#21 should fix this nodejs/node#32995

@szmarczak
Copy link
Author

wontfix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant