Commit d920b7c
authored
src: throw DOMException on cloning non-serializable objects
Instead of TypeError, throwing DOMException in accordance to the HTML
structured serialize algorithms.
PR-URL: #47839
Fixes: #40841
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>1 parent e43bf4c commit d920b7cCopy full SHA for d920b7c
File tree
Expand file treeCollapse file tree
7 files changed
+61
-38
lines changedOpen diff view settings
Filter options
- doc/api
- src
- test/parallel
Expand file treeCollapse file tree
7 files changed
+61
-38
lines changedOpen diff view settings
Collapse file
+36-23Lines changed: 36 additions & 23 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2084 | 2084 | |
2085 | 2085 | |
2086 | 2086 | |
2087 | | - |
2088 | | - |
2089 | | - |
2090 | | - |
2091 | | - |
2092 | | - |
2093 | 2087 | |
2094 | 2088 | |
2095 | 2089 | |
| ||
2287 | 2281 | |
2288 | 2282 | |
2289 | 2283 | |
2290 | | - |
2291 | | - |
2292 | | - |
2293 | | - |
2294 | | - |
2295 | | - |
2296 | | - |
2297 | | - |
2298 | | - |
2299 | | - |
2300 | | - |
2301 | | - |
2302 | | - |
2303 | | - |
2304 | | - |
2305 | | - |
2306 | | - |
2307 | 2284 | |
2308 | 2285 | |
2309 | 2286 | |
| ||
3300 | 3277 | |
3301 | 3278 | |
3302 | 3279 | |
| 3280 | + |
| 3281 | + |
| 3282 | + |
| 3283 | + |
| 3284 | + |
| 3285 | + |
| 3286 | + |
| 3287 | + |
| 3288 | + |
| 3289 | + |
| 3290 | + |
| 3291 | + |
| 3292 | + |
| 3293 | + |
3303 | 3294 | |
3304 | 3295 | |
3305 | 3296 | |
| ||
3312 | 3303 | |
3313 | 3304 | |
3314 | 3305 | |
| 3306 | + |
| 3307 | + |
| 3308 | + |
| 3309 | + |
| 3310 | + |
| 3311 | + |
| 3312 | + |
| 3313 | + |
| 3314 | + |
| 3315 | + |
| 3316 | + |
| 3317 | + |
| 3318 | + |
| 3319 | + |
| 3320 | + |
| 3321 | + |
| 3322 | + |
| 3323 | + |
| 3324 | + |
| 3325 | + |
| 3326 | + |
| 3327 | + |
3315 | 3328 | |
3316 | 3329 | |
3317 | 3330 | |
|
Collapse file
+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
74 | 74 | |
75 | 75 | |
76 | 76 | |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
77 | 81 | |
78 | 82 | |
79 | 83 | |
|
Collapse file
-6Lines changed: 0 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
75 | 75 | |
76 | 76 | |
77 | 77 | |
78 | | - |
79 | 78 | |
80 | 79 | |
81 | 80 | |
82 | 81 | |
83 | 82 | |
84 | | - |
85 | 83 | |
86 | 84 | |
87 | 85 | |
| ||
168 | 166 | |
169 | 167 | |
170 | 168 | |
171 | | - |
172 | 169 | |
173 | 170 | |
174 | 171 | |
175 | 172 | |
176 | 173 | |
177 | 174 | |
178 | | - |
179 | | - |
180 | | - |
181 | 175 | |
182 | 176 | |
183 | 177 | |
|
Collapse file
+3-3Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
431 | 431 | |
432 | 432 | |
433 | 433 | |
434 | | - |
| 434 | + |
435 | 435 | |
436 | 436 | |
437 | 437 | |
| ||
475 | 475 | |
476 | 476 | |
477 | 477 | |
478 | | - |
| 478 | + |
479 | 479 | |
480 | 480 | |
481 | 481 | |
| ||
533 | 533 | |
534 | 534 | |
535 | 535 | |
536 | | - |
| 536 | + |
537 | 537 | |
538 | 538 | |
539 | 539 | |
|
Collapse file
test/parallel/test-whatwg-webstreams-transfer.js
Copy file name to clipboardExpand all lines: test/parallel/test-whatwg-webstreams-transfer.js+12-4Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
105 | 105 | |
106 | 106 | |
107 | 107 | |
108 | | - |
| 108 | + |
| 109 | + |
| 110 | + |
109 | 111 | |
110 | 112 | |
111 | 113 | |
| ||
155 | 157 | |
156 | 158 | |
157 | 159 | |
158 | | - |
| 160 | + |
| 161 | + |
| 162 | + |
159 | 163 | |
160 | 164 | |
161 | 165 | |
| ||
206 | 210 | |
207 | 211 | |
208 | 212 | |
209 | | - |
| 213 | + |
| 214 | + |
| 215 | + |
210 | 216 | |
211 | 217 | |
212 | 218 | |
| ||
292 | 298 | |
293 | 299 | |
294 | 300 | |
295 | | - |
| 301 | + |
| 302 | + |
| 303 | + |
296 | 304 | |
297 | 305 | |
298 | 306 | |
|
Collapse file
test/parallel/test-worker-message-port-transfer-filehandle.js
Copy file name to clipboardExpand all lines: test/parallel/test-worker-message-port-transfer-filehandle.js+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
14 | 14 | |
15 | 15 | |
16 | 16 | |
17 | | - |
| 17 | + |
| 18 | + |
| 19 | + |
18 | 20 | |
19 | 21 | |
20 | 22 | |
|
Collapse file
test/parallel/test-worker-workerdata-messageport.js
Copy file name to clipboardExpand all lines: test/parallel/test-worker-workerdata-messageport.js+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
54 | 54 | |
55 | 55 | |
56 | 56 | |
57 | | - |
| 57 | + |
| 58 | + |
| 59 | + |
58 | 60 | |
59 | 61 | |
60 | 62 | |
|
0 commit comments