Skip to content

fs: improve error performance of `fs.dir`

Reduces the C++ -> JS communication on error path by throwing the error from C++. We did the same optimization for remaining fs calls, and saw some promising results.

cc @nodejs/performance @nodejs/fs @nodejs/cpp-reviewers

Merge request reports

Loading