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 --- runtime/js/30_fs.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'runtime/js/30_fs.js') diff --git a/runtime/js/30_fs.js b/runtime/js/30_fs.js index 4a78ebcad..242e480b3 100644 --- a/runtime/js/30_fs.js +++ b/runtime/js/30_fs.js @@ -9,6 +9,7 @@ DatePrototype, MathTrunc, ObjectPrototypeIsPrototypeOf, + SafeArrayIterator, SymbolAsyncIterator, SymbolIterator, Function, @@ -211,7 +212,7 @@ let offset = 0; let str = 'const unix = Deno.build.os === "darwin" || Deno.build.os === "linux"; return {'; - for (let [name, type] of ObjectEntries(types)) { + for (let [name, type] of new SafeArrayIterator(ObjectEntries(types))) { const optional = type.startsWith("?"); if (optional) type = type.slice(1); -- cgit v1.2.3