Commit 7da2a44
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 7da2a44Copy full SHA for 7da2a44
1 file changed
+3-6Lines changed: 3 additions & 6 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- doc/api
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+3-6Lines changed: 3 additions & 6 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1412 | 1412 | |
1413 | 1413 | |
1414 | 1414 | |
1415 | | - |
1416 | | - |
| 1415 | + |
| 1416 | + |
1417 | 1417 | |
1418 | 1418 | |
1419 | 1419 | |
1420 | 1420 | |
1421 | | - |
1422 | | - |
1423 | 1421 | |
1424 | | - |
1425 | | - |
| 1422 | + |
1426 | 1423 | |
1427 | 1424 | |
1428 | 1425 | |
|
0 commit comments