Skip to content

Commit 1d59e3d

Browse files
author
Mert Can Altin
committed
streams: Fix util inspect for compression and decompression streams
1 parent 021cf91 commit 1d59e3d

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)