Skip to content

node:fs.promises FileHandle: open + 15+ FileHandle methods stubbed (read/write/chmod/stat/...) #2133

@proggeramlug

Description

@proggeramlug

Summary

#1779 closed (general fs gaps), but the FileHandle / fs.promises open surface remains incomplete: 15 tests fail with Cannot read properties of undefined (reading 'open') and 19 with generic value() missing on fs-promises methods.

Examples: test-fs-filehandle-use-after-close.js, test-fs-promises-file-handle-append-file.js, test-fs-promises-file-handle-chmod.js.

What to do

Implement fs.promises.open() returning a real FileHandle with: .read, .write, .appendFile, .chmod, .close, .stat, .sync, .truncate, .utimes, .readv/.writev, Symbol.asyncDispose. The 15 .open failures suggest fs.promises itself returns undefined or its open field is unwired; the 19 value() failures are downstream FileHandle methods.

Note: distinct from #2013 (validation/error-codes) and #1779 (general fs, closed).

Context: #800 sweep, perry 0.5.1032. Follow-up to #1779 (closed).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingparityNode.js compatibility / parity gaps

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions