node/lib/internal/bootstrap/switches
Ruben Bridgewater a13500f503
fs: improve mode and flags validation
This fixes a few bugs in `fs`. E.g., `fs.promises.access` accepted
strings as mode. It should have only accepted numbers. It will now
always validate the flags and the mode argument in an consistent way.

PR-URL: https://github.com/nodejs/node/pull/27044
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2020-01-12 20:45:21 +01:00
..
does_not_own_process_state.js lib: move initialization of APIs for changing process state 2020-01-06 06:54:17 -08:00
does_own_process_state.js fs: improve mode and flags validation 2020-01-12 20:45:21 +01:00
is_main_thread.js lib: move initialization of APIs for changing process state 2020-01-06 06:54:17 -08:00
is_not_main_thread.js lib: move initialization of APIs for changing process state 2020-01-06 06:54:17 -08:00