Commit f447acd
worker: support MessagePort passing in messages
Support passing `MessagePort` instances through other `MessagePort`s,
as expected by the `MessagePort` spec.
Thanks to Stephen Belanger for reviewing this change in its original PR.
Refs: ayojs/ayo#106
PR-URL: #20876
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>1 parent 337be58 commit f447acdCopy full SHA for f447acd
File tree
Expand file treeCollapse file tree
6 files changed
+123
-6
lines changedOpen diff view settings
Filter options
- doc/api
- src
- test/parallel
Expand file treeCollapse file tree
6 files changed
+123
-6
lines changedOpen diff view settings
Collapse file
+12Lines changed: 12 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
629 | 629 | |
630 | 630 | |
631 | 631 | |
| 632 | + |
| 633 | + |
| 634 | + |
| 635 | + |
| 636 | + |
| 637 | + |
632 | 638 | |
633 | 639 | |
634 | 640 | |
| ||
1304 | 1310 | |
1305 | 1311 | |
1306 | 1312 | |
| 1313 | + |
| 1314 | + |
| 1315 | + |
| 1316 | + |
| 1317 | + |
| 1318 | + |
1307 | 1319 | |
1308 | 1320 | |
1309 | 1321 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
83 | 83 | |
84 | 84 | |
85 | 85 | |
86 | | - |
| 86 | + |
87 | 87 | |
88 | 88 | |
89 | 89 | |
|
Collapse file
+6-1Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
19 | 19 | |
20 | 20 | |
21 | 21 | |
| 22 | + |
22 | 23 | |
23 | 24 | |
24 | 25 | |
| ||
27 | 28 | |
28 | 29 | |
29 | 30 | |
| 31 | + |
30 | 32 | |
31 | 33 | |
32 | 34 | |
| ||
51 | 53 | |
52 | 54 | |
53 | 55 | |
| 56 | + |
54 | 57 | |
55 | 58 | |
56 | 59 | |
57 | 60 | |
58 | | - |
| 61 | + |
| 62 | + |
| 63 | + |
59 | 64 | |
60 | 65 | |
61 | 66 | |
|
Collapse file
+76-4Lines changed: 76 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
41 | 41 | |
42 | 42 | |
43 | 43 | |
44 | | - |
45 | | - |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
46 | 58 | |
47 | 59 | |
48 | 60 | |
49 | 61 | |
50 | 62 | |
51 | 63 | |
| 64 | + |
52 | 65 | |
53 | 66 | |
54 | 67 | |
| ||
58 | 71 | |
59 | 72 | |
60 | 73 | |
61 | | - |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
62 | 91 | |
63 | 92 | |
64 | 93 | |
| ||
83 | 112 | |
84 | 113 | |
85 | 114 | |
| 115 | + |
| 116 | + |
| 117 | + |
| 118 | + |
86 | 119 | |
87 | 120 | |
88 | 121 | |
| ||
97 | 130 | |
98 | 131 | |
99 | 132 | |
| 133 | + |
| 134 | + |
| 135 | + |
| 136 | + |
| 137 | + |
| 138 | + |
| 139 | + |
| 140 | + |
| 141 | + |
| 142 | + |
| 143 | + |
| 144 | + |
| 145 | + |
| 146 | + |
| 147 | + |
| 148 | + |
| 149 | + |
| 150 | + |
100 | 151 | |
101 | 152 | |
102 | 153 | |
| 154 | + |
| 155 | + |
| 156 | + |
| 157 | + |
| 158 | + |
| 159 | + |
| 160 | + |
| 161 | + |
| 162 | + |
| 163 | + |
| 164 | + |
| 165 | + |
103 | 166 | |
104 | 167 | |
105 | 168 | |
| 169 | + |
106 | 170 | |
107 | 171 | |
108 | 172 | |
| ||
131 | 195 | |
132 | 196 | |
133 | 197 | |
134 | | - |
| 198 | + |
135 | 199 | |
136 | 200 | |
137 | 201 | |
| ||
144 | 208 | |
145 | 209 | |
146 | 210 | |
| 211 | + |
| 212 | + |
| 213 | + |
| 214 | + |
| 215 | + |
| 216 | + |
147 | 217 | |
148 | 218 | |
149 | 219 | |
| ||
167 | 237 | |
168 | 238 | |
169 | 239 | |
| 240 | + |
| 241 | + |
170 | 242 | |
171 | 243 | |
172 | 244 | |
|
Collapse file
+5Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
37 | 37 | |
38 | 38 | |
39 | 39 | |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
40 | 44 | |
41 | 45 | |
42 | 46 | |
| 47 | + |
43 | 48 | |
44 | 49 | |
45 | 50 | |
|
Collapse file
test/parallel/test-message-port-message-port-transferring.js
Copy file name to clipboard+23Lines changed: 23 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 | + |
0 commit comments