We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 test case:
const { Readable } = require('stream'); const stream = new Readable({ read(n) {} }); process.nextTick(() => { stream.push(Buffer.alloc(1)); stream.push(null); }); (function checkFirstChunk() { var chunk = stream.read(); if (!chunk) return stream.once('readable', checkFirstChunk); stream.unshift(chunk); stream.on('end', () => { console.log('file end'); }).resume(); })();
On node v8.x and node master, 'file end' is logged to the console. On node v10.x, nothing is logged.
'file end'
I wasn't sure if this is the same/similar underlying issue as #24474 or not, so I decided to submit this just in case.
The text was updated successfully, but these errors were encountered:
/cc @nodejs/streams
Sorry, something went wrong.
This was fixed in #24366, and backported in 10.15.1. Closing now.
Thanks @codebytere!
No branches or pull requests
The test case:
On node v8.x and node master,
'file end'
is logged to the console. On node v10.x, nothing is logged.I wasn't sure if this is the same/similar underlying issue as #24474 or not, so I decided to submit this just in case.
The text was updated successfully, but these errors were encountered: