SIGN IN SIGN UP
denoland / deno UNCLAIMED

A modern runtime for JavaScript and TypeScript.

0 0 0 Rust

fix(ext/node): fix BadResource error in FileHandle.readLines() (#32685)

## Summary

- Fixes #32678
- `FileHandle.createReadStream()` now passes the FileHandle object (not
numeric fd) to ReadStream/WriteStream, matching Node.js behavior
- Added `FileHandleOperations` wrapper in `importFd()` that bridges
FileHandle's promise-based methods to the callback-based stream
internals, enabling proper lifecycle coordination via ref-counting

Co-authored-by: Claude Opus 4.6 <[email protected]>
B
Bartek Iwańczuk committed
ca989a0306e61ba65ad53d1981d4d25036bbac8d
Parent: 2bb0666
Committed by GitHub <[email protected]> on 3/30/2026, 2:55:19 PM