diff --git a/doc/api/errors.md b/doc/api/errors.md index bb903ed0ee8..840ba9b85c1 100644 --- a/doc/api/errors.md +++ b/doc/api/errors.md @@ -1926,6 +1926,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 28ed9734f55..0ba97f851cc 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()