Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make node:fs.ReadableStream and node:stream.NativeReadable constructor functions #10943

Merged
merged 12 commits into from
May 10, 2024

Conversation

nektro
Copy link
Contributor

@nektro nektro commented May 9, 2024

Closes #4417

src/js/node/http.ts Outdated Show resolved Hide resolved
src/js/node/http.ts Outdated Show resolved Hide resolved
src/js/node/tty.ts Outdated Show resolved Hide resolved
src/js/node/tty.ts Outdated Show resolved Hide resolved
src/js/node/tty.ts Outdated Show resolved Hide resolved
src/js/node/tty.ts Outdated Show resolved Hide resolved
Copy link

github-actions bot commented May 9, 2024

@nektro, your commit has failing tests :(

💪 3 failing tests Darwin AARCH64

💻 3 failing tests Darwin x64 baseline

💻 1 failing tests Darwin x64

🐧💪 2 failing tests Linux AARCH64

🐧🖥 2 failing tests Linux x64 baseline

🪟💻 7 failing tests Windows x64 baseline

🪟💻 9 failing tests Windows x64

View logs

@nektro nektro requested a review from Jarred-Sumner May 9, 2024 22:24
// Then if n is bigger than fileSize, set n to be fileSize
// This is a fast path to avoid allocating more than the file size for a small file (is this respected by native stream though)
if (this[mfileSize] === -1 && bytesRead === 0 && pos === undefined) {
var stat = fstatSync(fd);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should remove this code later, we already call stat in Bun.file(path).stream

not in this PR though

src/js/node/http.ts Outdated Show resolved Hide resolved
@Jarred-Sumner
Copy link
Collaborator

build errors
2 nitpicky comments

Jarred-Sumner and others added 2 commits May 9, 2024 15:29
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
@nektro nektro requested a review from Jarred-Sumner May 10, 2024 00:09
@Jarred-Sumner Jarred-Sumner merged commit 8528e9c into main May 10, 2024
39 of 52 checks passed
@Jarred-Sumner Jarred-Sumner deleted the nektro-patch-9545 branch May 10, 2024 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support st (static file server package)
2 participants