You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"use strict"constreaddirp=require("readdirp")constdir="LayoutTests";(async()=>{letpromise=awaitreaddirp.promise(dir)console.log(promise.length)// 196246letcount=0forawait(letentryofreaddirp(dir)){console.log(entry.path,++count)// goes up to 471 (weird, right?)}console.log("unreachable")// process exits before this line})()
First 471 entries are equal to the ones returned by readdirp.promise.
No unhandled rejections, no exceptions, 0 exit code, not out of memory.
I am running on macOS, here is the dir.