fs: fix flag and mode validation
The flag
and mode
options were not being validated correctly.
Unfortunately semver-major because there are some changes to the error codes. However, I'd argue that this should be considered a bug fix.
Signed-off-by: James M Snell jasnell@gmail.com Fixes: https://github.com/nodejs/node/issues/37430