doc: fix URL postMessage example in worker_threads · nodejs/node@7da2a44 · GitHub
Skip to content

Commit 7da2a44

Browse files
kovanclaude
authored andcommitted
doc: fix URL postMessage example in worker_threads
The example claimed that posting a URL object via MessageChannel would print an empty object, but since v21.0.0 (commit d920b7c) it throws a DataCloneError. Update the example and surrounding text to reflect the current behavior. Fixes: #60504 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Kit Dallege <xaum.io@gmail.com> PR-URL: #62203 Fixes: #60504 Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 2e4a0d0 commit 7da2a44

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

doc/api/worker_threads.md

Lines changed: 3 additions & 6 deletions

0 commit comments

Comments
 (0)