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
{{ message }}
This repository was archived by the owner on Nov 4, 2024. It is now read-only.
The isFile method is no longer directly on Stats.prototype but on StatsBase.prototype instead.
The code should theoretically still work because the prototype chain is setup with Object.setPrototypeOf(Stats.prototype, StatsBase.prototype);. My guess is that it's broken because the setup of safe/fs.js does not handle this correctly.
Found the breakage with CITGM while preparing Node.js 12.5.0.
From this PR: nodejs/node#21387
Affected code:
esm/src/fs/stat-fast.js
Line 9 in 6feb50b
The
isFilemethod is no longer directly onStats.prototypebut onStatsBase.prototypeinstead.The code should theoretically still work because the prototype chain is setup with
Object.setPrototypeOf(Stats.prototype, StatsBase.prototype);. My guess is that it's broken because the setup ofsafe/fs.jsdoes not handle this correctly.