diff options
Diffstat (limited to 'runtime/js/30_fs.js')
-rw-r--r-- | runtime/js/30_fs.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/js/30_fs.js b/runtime/js/30_fs.js index 897c89a13..770cef1a8 100644 --- a/runtime/js/30_fs.js +++ b/runtime/js/30_fs.js @@ -9,7 +9,6 @@ DatePrototype, MathTrunc, ObjectPrototypeIsPrototypeOf, - SafeArrayIterator, SymbolAsyncIterator, SymbolIterator, Function, @@ -212,7 +211,10 @@ let offset = 0; let str = 'const unix = Deno.build.os === "darwin" || Deno.build.os === "linux"; return {'; - for (let [name, type] of new SafeArrayIterator(ObjectEntries(types))) { + const typeEntries = ObjectEntries(types); + for (let i = 0; i < typeEntries.length; ++i) { + let [name, type] = typeEntries[i]; + const optional = type.startsWith("?"); if (optional) type = type.slice(1); |