Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

esm is broken by change in Node.js #821

Open
@targos

Description

Found the breakage with CITGM while preparing Node.js 12.5.0.

From this PR: nodejs/node#21387
Affected code:

const { isFile } = Stats.prototype

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.

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions