summaryrefslogtreecommitdiff
path: root/runtime/js/30_fs.js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js/30_fs.js')
-rw-r--r--runtime/js/30_fs.js3
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);