diff --git a/doc/api/worker_threads.md b/doc/api/worker_threads.md index 0d585965b856d7..7fd942f5ce42e7 100644 --- a/doc/api/worker_threads.md +++ b/doc/api/worker_threads.md @@ -128,10 +128,15 @@ if (isMainThread) { added: - v14.5.0 - v12.19.0 +changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/47604 + description: An error is thrown when the untransferable object is in the + transfer list. --> Mark an object as not transferable. If `object` occurs in the transfer list of -a [`port.postMessage()`][] call, it is ignored. +a [`port.postMessage()`][] call, an error is thrown. In particular, this makes sense for objects that can be cloned, rather than transferred, and which are used by other objects on the sending side. @@ -568,6 +573,11 @@ are part of the channel.