Skip to content

Commit

Permalink
streams: fix util inspect returning undefined for CompressionStream &…
Browse files Browse the repository at this point in the history
… DecompressionStream
  • Loading branch information
Mert Can Altin committed Mar 30, 2024
1 parent 021cf91 commit 66c352b
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 66c352b

Please sign in to comment.