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

streams: fix util inspect returning undefined for CompressionStream & DecompressionStream #52283

Merged
merged 3 commits into from May 12, 2024

Conversation

mertcanaltin
Copy link
Member

@mertcanaltin mertcanaltin commented Mar 30, 2024

The customInspect method within the internal module node/lib/internal/webstreams/compression.js was missing a return statement, causing util.inspect to return undefined when inspecting instances of CompressionStream and DecompressionStream. This commit adds the missing return statement to ensure that util.inspect displays the correct information for these stream instances.

Fixes: #52263

@mertcanaltin
Copy link
Member Author

@mertcanaltin mertcanaltin force-pushed the dev-52263 branch 2 times, most recently from fce8ced to 1d59e3d Compare March 30, 2024 20:36
@atlowChemi atlowChemi added the request-ci Add this label to start a Jenkins CI on a PR. label Apr 5, 2024
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Apr 5, 2024
@nodejs-github-bot
Copy link
Collaborator

@atlowChemi atlowChemi added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Apr 5, 2024
@nodejs-github-bot
Copy link
Collaborator

@panva panva added request-ci Add this label to start a Jenkins CI on a PR. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. labels Apr 8, 2024
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Apr 8, 2024
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@MoLow
Copy link
Member

MoLow commented Apr 28, 2024

this PR seems to be missing a test. @mertcanaltin can you please add on in a follow-up pr?

@mertcanaltin
Copy link
Member Author

this PR seems to be missing a test. @mertcanaltin can you please add on in a follow-up pr?

#52283 (comment)

I wonder if this is true, I interpreted it as no need for a test @MoLow

@BridgeAR
Copy link
Member

BridgeAR commented May 4, 2024

@mertcanaltin adding a test is always good to prevent regressions. So far this is clearly not covered, otherwise it would have been detected :)

@nodejs-github-bot
Copy link
Collaborator

@mertcanaltin
Copy link
Member Author

Thank you very much for the details, I will add it immediately

mertcanaltin and others added 2 commits May 10, 2024 21:29
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
@aduh95 aduh95 added the request-ci Add this label to start a Jenkins CI on a PR. label May 11, 2024
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label May 11, 2024
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@aduh95 aduh95 merged commit cd155d6 into nodejs:main May 12, 2024
50 of 53 checks passed
@aduh95
Copy link
Contributor

aduh95 commented May 12, 2024

Landed in cd155d6

targos pushed a commit that referenced this pull request May 12, 2024
PR-URL: #52283
Fixes: #52263
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Matthew Aitken <maitken033380023@gmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Deokjin Kim <deokjin81.kim@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. needs-ci PRs that need a full CI run. web streams
Projects
None yet
Development

Successfully merging this pull request may close these issues.

util.inspect(new CompressionStream()) returns undefined