From 948f85216a15e4ef489af21bb532a9b201b0364c Mon Sep 17 00:00:00 2001 From: Kenta Moriuchi Date: Tue, 20 Dec 2022 11:37:50 +0900 Subject: chore: Update dlint (#17031) Introduces `SafeSetIterator` and `SafeMapIterator` to primordials --- ext/web/10_filereader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/web/10_filereader.js') diff --git a/ext/web/10_filereader.js b/ext/web/10_filereader.js index 49f4babe1..30396a8d0 100644 --- a/ext/web/10_filereader.js +++ b/ext/web/10_filereader.js @@ -158,7 +158,7 @@ ); const bytes = new Uint8Array(size); let offs = 0; - for (const chunk of chunks) { + for (const chunk of new SafeArrayIterator(chunks)) { TypedArrayPrototypeSet(bytes, chunk, offs); offs += chunk.byteLength; } -- cgit v1.2.3