Unverified Commit f0a40172 authored by cjihrig's avatar cjihrig Committed by Michaël Zasso
Browse files

fs: ensure readdir() callback is only called once

This commit ensures that the readdir() callback can only be
called once when the withFileTypes parameter is supplied.

PR-URL: https://github.com/nodejs/node/pull/22793
Fixes: https://github.com/nodejs/node/issues/22778


Reviewed-By: default avatarBryan English <bryan@bryanenglish.com>
Reviewed-By: default avatarAnatoli Papirovski <apapirovski@mac.com>
Reviewed-By: default avatarMinwoo Jung <minwoo@nodesource.com>
parent aa05c8b1
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment