Skip to content

fs: handle result of access binding directly in fs.existsSync

Instead of throwing errors in fs.accessSync and then catching it, handle the result from the binding directly in fs.existsSync.

Note that the argument validation errors still needs to be caught until we properly deprecate the don't-thrown-on-invalid-arguments behavior.

Fixes: https://github.com/nodejs/node/issues/24008

Merge request reports

Loading