File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
const {
4
4
ObjectDefineProperties,
5
+ SymbolToStringTag,
5
6
Symbol,
6
7
} = primordials ;
7
8
@@ -149,11 +150,21 @@ class DecompressionStream {
149
150
ObjectDefineProperties ( CompressionStream . prototype , {
150
151
readable : kEnumerableProperty ,
151
152
writable : kEnumerableProperty ,
153
+ [ SymbolToStringTag ] : {
154
+ __proto__ : null ,
155
+ configurable : true ,
156
+ value : 'CompressionStream' ,
157
+ } ,
152
158
} ) ;
153
159
154
160
ObjectDefineProperties ( DecompressionStream . prototype , {
155
161
readable : kEnumerableProperty ,
156
162
writable : kEnumerableProperty ,
163
+ [ SymbolToStringTag ] : {
164
+ __proto__ : null ,
165
+ configurable : true ,
166
+ value : 'DecompressionStream' ,
167
+ } ,
157
168
} ) ;
158
169
159
170
module . exports = {
Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ async function test(format) {
15
15
const gzip = new CompressionStream ( format ) ;
16
16
const gunzip = new DecompressionStream ( format ) ;
17
17
18
+ assert . strictEqual ( gzip [ Symbol . toStringTag ] , 'CompressionStream' ) ;
19
+ assert . strictEqual ( gunzip [ Symbol . toStringTag ] , 'DecompressionStream' ) ;
20
+
18
21
gzip . readable . pipeTo ( gunzip . writable ) . then ( common . mustCall ( ) ) ;
19
22
20
23
const reader = gunzip . readable . getReader ( ) ;
You can’t perform that action at this time.
0 commit comments