Skip to content

Commit

Permalink
streams: Util inspect fix for CompressionStream DecompressionStream r…
Browse files Browse the repository at this point in the history
…eturning undefined
  • Loading branch information
Mert Can Altin committed Mar 30, 2024
1 parent 081319d commit 2b9b6dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/internal/webstreams/compression.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class CompressionStream {
}

[kInspect](depth, options) {
customInspect(depth, options, 'CompressionStream', {
return customInspect(depth, options, 'CompressionStream', {
readable: this.#transform.readable,
writable: this.#transform.writable,
});
Expand Down Expand Up @@ -128,7 +128,7 @@ class DecompressionStream {
}

[kInspect](depth, options) {
customInspect(depth, options, 'DecompressionStream', {
return customInspect(depth, options, 'DecompressionStream', {
readable: this.#transform.readable,
writable: this.#transform.writable,
});
Expand Down

0 comments on commit 2b9b6dd

Please sign in to comment.