Commit 44864d7
committed
worker: do not crash when JSTransferable lists untransferable value
This can currently be triggered when posting a closing FileHandle.
Refs: #34746 (comment)
PR-URL: #34766
Backport-PR-URL: #34814
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent ed72d83 commit 44864d7Copy full SHA for 44864d7
File tree
Expand file treeCollapse file tree
2 files changed
+45
-5
lines changedOpen diff view settings
Filter options
- src
- test/parallel
Expand file treeCollapse file tree
2 files changed
+45
-5
lines changedOpen diff view settings
Collapse file
+7-5Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
367 | 367 | |
368 | 368 | |
369 | 369 | |
| 370 | + |
| 371 | + |
| 372 | + |
| 373 | + |
| 374 | + |
| 375 | + |
370 | 376 | |
371 | 377 | |
372 | 378 | |
373 | 379 | |
374 | 380 | |
375 | 381 | |
376 | 382 | |
377 | | - |
378 | | - |
379 | | - |
380 | | - |
381 | | - |
| 383 | + |
382 | 384 | |
383 | 385 | |
384 | 386 | |
|
Collapse file
test/parallel/test-worker-message-port-jstransferable-nested-untransferable.js
Copy file name to clipboard+38Lines changed: 38 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
0 commit comments