Commit d1965f9
lib: implement webidl dictionary converter and use it in structuredClone
This commit provides a factory to generate `dictionaryConverter`
compliant with the spec. The implemented factory function is used for
the `structuredClone` algorithm with updated test cases.
PR-URL: #55489
Reviewed-By: Matthew Aitken <maitken033380023@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>1 parent bf552fa commit d1965f9Copy full SHA for d1965f9
File tree
Expand file treeCollapse file tree
3 files changed
+98
-23
lines changedOpen diff view settings
Filter options
- lib/internal
- worker
- test/parallel
Expand file treeCollapse file tree
3 files changed
+98
-23
lines changedOpen diff view settings
Collapse file
+63Lines changed: 63 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2 | 2 | |
3 | 3 | |
4 | 4 | |
| 5 | + |
5 | 6 | |
6 | 7 | |
7 | 8 | |
| ||
272 | 273 | |
273 | 274 | |
274 | 275 | |
| 276 | + |
| 277 | + |
| 278 | + |
| 279 | + |
| 280 | + |
| 281 | + |
| 282 | + |
| 283 | + |
| 284 | + |
| 285 | + |
| 286 | + |
| 287 | + |
| 288 | + |
| 289 | + |
| 290 | + |
| 291 | + |
| 292 | + |
| 293 | + |
| 294 | + |
| 295 | + |
| 296 | + |
| 297 | + |
| 298 | + |
| 299 | + |
| 300 | + |
| 301 | + |
| 302 | + |
| 303 | + |
| 304 | + |
| 305 | + |
| 306 | + |
| 307 | + |
| 308 | + |
| 309 | + |
| 310 | + |
| 311 | + |
| 312 | + |
| 313 | + |
| 314 | + |
| 315 | + |
| 316 | + |
| 317 | + |
| 318 | + |
| 319 | + |
| 320 | + |
| 321 | + |
| 322 | + |
| 323 | + |
| 324 | + |
| 325 | + |
| 326 | + |
| 327 | + |
| 328 | + |
| 329 | + |
| 330 | + |
| 331 | + |
| 332 | + |
| 333 | + |
| 334 | + |
| 335 | + |
| 336 | + |
275 | 337 | |
276 | 338 | |
277 | 339 | |
| ||
327 | 389 | |
328 | 390 | |
329 | 391 | |
| 392 | + |
330 | 393 | |
331 | 394 | |
332 | 395 | |
Collapse file
lib/internal/worker/js_transferable.js
Copy file name to clipboardExpand all lines: lib/internal/worker/js_transferable.js+19-18Lines changed: 19 additions & 18 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
5 | 5 | |
6 | 6 | |
7 | 7 | |
8 | | - |
9 | 8 | |
10 | 9 | |
11 | 10 | |
| ||
98 | 97 | |
99 | 98 | |
100 | 99 | |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | + |
| 108 | + |
| 109 | + |
| 110 | + |
| 111 | + |
101 | 112 | |
102 | 113 | |
103 | 114 | |
104 | 115 | |
105 | 116 | |
106 | | - |
107 | | - |
108 | | - |
109 | | - |
110 | | - |
111 | | - |
112 | | - |
113 | | - |
114 | | - |
115 | | - |
116 | | - |
117 | | - |
118 | | - |
119 | | - |
| 117 | + |
| 118 | + |
| 119 | + |
120 | 120 | |
121 | | - |
122 | | - |
123 | | - |
| 121 | + |
| 122 | + |
| 123 | + |
| 124 | + |
124 | 125 | |
125 | 126 | |
126 | 127 | |
|
Collapse file
test/parallel/test-structuredClone-global.js
Copy file name to clipboardExpand all lines: test/parallel/test-structuredClone-global.js+16-5Lines changed: 16 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
6 | 12 | |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
12 | 23 | |
13 | 24 | |
14 | 25 | |
|
0 commit comments