Commit 9b95c41
lib: fix sequence argument handling in Blob constructor
This uses the existing WebIDL infrastructure to handle the iteration
over the argument correctly according to the specification.
Note that we can't avoid looping over the input twice: we only know the
value of the 'endings' option after converting the blob parts into an
array.
PR-URL: #62179
Reviewed-By: Mattias Buelens <mattias@buelens.com>
Reviewed-By: Jason Zhang <xzha4350@gmail.com>1 parent 6b7280b commit 9b95c41Copy full SHA for 9b95c41
2 files changed
+18-22Lines changed: 18 additions & 22 deletions
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+18-14Lines changed: 18 additions & 14 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
4 | | - |
5 | 4 | |
6 | 5 | |
7 | 6 | |
| ||
15 | 14 | |
16 | 15 | |
17 | 16 | |
18 | | - |
19 | 17 | |
20 | 18 | |
21 | 19 | |
| ||
54 | 52 | |
55 | 53 | |
56 | 54 | |
57 | | - |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
58 | 60 | |
59 | 61 | |
60 | 62 | |
61 | 63 | |
62 | | - |
63 | 64 | |
64 | 65 | |
65 | 66 | |
| ||
112 | 113 | |
113 | 114 | |
114 | 115 | |
115 | | - |
116 | 116 | |
117 | 117 | |
118 | 118 | |
| ||
126 | 126 | |
127 | 127 | |
128 | 128 | |
| 129 | + |
| 130 | + |
| 131 | + |
| 132 | + |
| 133 | + |
| 134 | + |
| 135 | + |
129 | 136 | |
130 | 137 | |
131 | 138 | |
| ||
142 | 149 | |
143 | 150 | |
144 | 151 | |
145 | | - |
146 | | - |
147 | | - |
148 | | - |
149 | | - |
| 152 | + |
| 153 | + |
150 | 154 | |
151 | 155 | |
152 | 156 | |
| ||
158 | 162 | |
159 | 163 | |
160 | 164 | |
161 | | - |
162 | | - |
| 165 | + |
| 166 | + |
163 | 167 | |
164 | | - |
165 | | - |
| 168 | + |
| 169 | + |
166 | 170 | |
167 | 171 | |
168 | 172 | |
|
Collapse file
test/wpt/status/FileAPI/blob.cjs
Copy file name to clipboardExpand all lines: test/wpt/status/FileAPI/blob.cjs-8Lines changed: 0 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
25 | 25 | |
26 | 26 | |
27 | 27 | |
28 | | - |
29 | | - |
30 | | - |
31 | | - |
32 | | - |
33 | | - |
34 | | - |
35 | | - |
36 | 28 | |
37 | 29 | |
38 | 30 | |
|
0 commit comments