summaryrefslogtreecommitdiff
path: root/ext/fs
diff options
context:
space:
mode:
authorKenta Moriuchi <moriken@kimamass.com>2023-04-03 02:41:41 +0900
committerGitHub <noreply@github.com>2023-04-02 19:41:41 +0200
commit03edd48edd004cec091541e6b71095cfbc4b4c87 (patch)
tree72aed1dae803334b73479ffebc7ca8c83d10addf /ext/fs
parentad8d0c90d1887beb8a5f2c6d30f9dc71cc63e4fe (diff)
chore: Turn back on dlintPreferPrimordials (#17715)
Closes #17709
Diffstat (limited to 'ext/fs')
-rw-r--r--ext/fs/30_fs.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/fs/30_fs.js b/ext/fs/30_fs.js
index 500416980..1421de9eb 100644
--- a/ext/fs/30_fs.js
+++ b/ext/fs/30_fs.js
@@ -137,7 +137,10 @@ function readDir(path) {
);
return {
async *[SymbolAsyncIterator]() {
- yield* await array;
+ const dir = await array;
+ for (let i = 0; i < dir.length; ++i) {
+ yield dir[i];
+ }
},
};
}