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

misc(build): fix minifyFileTransform stream bug in Node 16 #13073

Merged
merged 2 commits into from
Sep 16, 2021

Conversation

connorjclark
Copy link
Collaborator

@connorjclark connorjclark commented Sep 16, 2021

Through observation, I've seen that the final method here, starting in Node 16, allows a Promise to be returned and its resolve/reject is routed to the original API's next() callback. So in Node 16, we basically called next twice, which results in an error. I could not locate any mention of this behavior in the Stream docs.

Fix is to return void for now.

@connorjclark connorjclark requested a review from a team as a code owner September 16, 2021 00:31
@connorjclark connorjclark requested review from adamraine and removed request for a team September 16, 2021 00:31
@google-cla google-cla bot added the cla: yes label Sep 16, 2021
@connorjclark connorjclark changed the title build: fix minifyFileTransform stream bug in Node 16 misc(build): fix minifyFileTransform stream bug in Node 16 Sep 16, 2021
@connorjclark connorjclark merged commit 6b95928 into master Sep 16, 2021
@connorjclark connorjclark deleted the stream-16-fix branch September 16, 2021 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants