Commit 4c63b21
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>1 parent 3bbed16 commit 4c63b21
1 file changed
+3
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1416 | 1416 | | |
1417 | 1417 | | |
1418 | 1418 | | |
1419 | | - | |
1420 | | - | |
| 1419 | + | |
| 1420 | + | |
1421 | 1421 | | |
1422 | 1422 | | |
1423 | 1423 | | |
1424 | 1424 | | |
1425 | | - | |
1426 | | - | |
1427 | 1425 | | |
1428 | | - | |
1429 | | - | |
| 1426 | + | |
1430 | 1427 | | |
1431 | 1428 | | |
1432 | 1429 | | |
| |||
0 commit comments