diff --git a/doc/api/errors.md b/doc/api/errors.md index 595d18267255ad..54067182b25f49 100644 --- a/doc/api/errors.md +++ b/doc/api/errors.md @@ -1880,6 +1880,11 @@ All attempts at serializing an uncaught exception from a worker thread failed. The pathname used for the main script of a worker has an unknown file extension. + +### ERR_WORKER_UNSUPPORTED_OPERATION + +The requested functionality is not supported in worker threads. + ### ERR_ZLIB_INITIALIZATION_FAILED diff --git a/doc/api/process.md b/doc/api/process.md index 28ed9734f55144..0ba97f851cce9f 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -2007,7 +2007,8 @@ console.log( ); ``` -This feature is not available in [`Worker`][] threads. +[`Worker`][] threads are able to read the umask, however attempting to set the +umask will result in a thrown exception. ## process.uptime()