diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index fc333e937d6..0e67efd37c7 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -4190,6 +4190,9 @@ npx codemod@latest @nodejs/repl-classes-with-new -Type: Runtime +Type: End-of-Life -Passing non-supported argument types is deprecated and, instead of returning `false`, -will throw an error in a future version. +Passing non-supported argument types to `fs.existsSync()` throws an +`ERR_INVALID_ARG_TYPE` error instead of returning `false`. ### DEP0188: `process.features.ipv6` and `process.features.uv` diff --git a/doc/api/fs.md b/doc/api/fs.md index 929ea302957..186ab76c098 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -6299,6 +6299,10 @@ behavior is similar to `cp dir1/ dir2/`.