Skip to content

js/node/stream.js: call write() callback when encoding is not provided #4841

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

Merged
merged 2 commits into from
Sep 13, 2023

Conversation

cfal
Copy link
Contributor

@cfal cfal commented Sep 10, 2023

What does this PR do?

This invokes the write() callback function correctly when encoding is not provided.

Fixes #4731.

ref: https://nodejs.org/api/stream.html#writablewritechunk-encoding-callback

How did you verify your code works?

  • I ran make js and committed the transpiled changes
  • I or my editor ran Prettier on the changed files (or I ran bun fmt)
  • I included a test for the new code, or an existing test covers it

Copy link
Member

@dylan-conway dylan-conway left a comment

Choose a reason for hiding this comment

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

Looks great. Can you run make js and commit the changes to src/js/out/InternalModuleRegistryConstants.h?

@cfal
Copy link
Contributor Author

cfal commented Sep 13, 2023

Looks great. Can you run make js and commit the changes to src/js/out/InternalModuleRegistryConstants.h?

done

@cfal cfal requested a review from dylan-conway September 13, 2023 05:06
Copy link
Member

@dylan-conway dylan-conway left a comment

Choose a reason for hiding this comment

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

thank you

@dylan-conway dylan-conway merged commit 75b5c71 into oven-sh:main Sep 13, 2023
paperclover pushed a commit to SuperAuguste/bun that referenced this pull request Sep 18, 2023
oven-sh#4841)

* js/node/stream.js: call write() callback when encoding is not provided

* js/out/InternalModuleRegistryConstants.h: update
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.

node:child_process spawn() stream pipe write callbacks are not invoked
2 participants