Skip to content

Commit 4c5570f

Browse files
author
Mert Can Altin
committed
stream: Fix util.inspect for compression/decompressionStream
1 parent 511be6c commit 4c5570f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/webstreams/compression.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class CompressionStream {
7878
}
7979

8080
[kInspect](depth, options) {
81-
customInspect(depth, options, 'CompressionStream', {
81+
return customInspect(depth, options, 'CompressionStream', {
8282
readable: this.#transform.readable,
8383
writable: this.#transform.writable,
8484
});
@@ -128,7 +128,7 @@ class DecompressionStream {
128128
}
129129

130130
[kInspect](depth, options) {
131-
customInspect(depth, options, 'DecompressionStream', {
131+
return customInspect(depth, options, 'DecompressionStream', {
132132
readable: this.#transform.readable,
133133
writable: this.#transform.writable,
134134
});

0 commit comments

Comments
 (0)