diff options
author | Kenta Moriuchi <moriken@kimamass.com> | 2022-12-20 11:37:50 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-20 03:37:50 +0100 |
commit | 948f85216a15e4ef489af21bb532a9b201b0364c (patch) | |
tree | 35c2bbfa021cf9a4190ab803ed091c5547bfe9f4 /runtime/js/30_fs.js | |
parent | 2ac575abfb75dc4533306c80240cb1beeb816b9b (diff) |
chore: Update dlint (#17031)
Introduces `SafeSetIterator` and `SafeMapIterator` to primordials
Diffstat (limited to 'runtime/js/30_fs.js')
-rw-r--r-- | runtime/js/30_fs.js | 3 |
1 files changed, 2 insertions, 1 deletions
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); |