Open magic-akari opened 1 month ago
Thanks for filling the issue. If you're able to post a repro that does not involve downloading code from the internet, you're more likely to get help. Ideally, a list of commands that one can copy paste in their terminal.
This seems to be the same as https://github.com/nodejs/node/issues/48820.
This seems to be the same as #48820.
@mdouglass is this the same as the issue you reported?
Version
v20.15.1
Platform
Subsystem
No response
What steps will reproduce the bug?
opendir-wrong-result-0.0.0.tgz
Download the package and execute the command
node list.mjs | wc
.How often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
Should print 465
What do you see instead?
Printed 188
Additional information
Code:
It may be related to the bufferSize. Adjusting the bufferSize to 500 resulted in the correct output being printed.