mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:37:36 +00:00
LibWeb: Reverse check for whether a FilesList index is supported
This fixes for..of iteration of a FilesList object.
This commit is contained in:
parent
c2ef506b4a
commit
0cc8698a62
3 changed files with 18 additions and 7 deletions
|
@ -13,7 +13,13 @@
|
|||
const file = input.files.item(i);
|
||||
const text = await file.text();
|
||||
|
||||
println(`${file.name}: ${text}`);
|
||||
println(`${file.name} (index iteration): ${text}`);
|
||||
}
|
||||
|
||||
for (let file of input.files) {
|
||||
const text = await file.text();
|
||||
|
||||
println(`${file.name} (for..of iteration): ${text}`);
|
||||
}
|
||||
|
||||
resolve();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue