File tree 2 files changed +14
-1
lines changed
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
const {
4
4
ObjectDefineProperties,
5
- Symbol ,
5
+ SymbolToStringTag ,
6
6
} = primordials ;
7
7
8
8
const {
@@ -149,11 +149,21 @@ class DecompressionStream {
149
149
ObjectDefineProperties ( CompressionStream . prototype , {
150
150
readable : kEnumerableProperty ,
151
151
writable : kEnumerableProperty ,
152
+ [ SymbolToStringTag ] : {
153
+ __proto__ : null ,
154
+ configurable : true ,
155
+ value : 'CompressionStream' ,
156
+ } ,
152
157
} ) ;
153
158
154
159
ObjectDefineProperties ( DecompressionStream . prototype , {
155
160
readable : kEnumerableProperty ,
156
161
writable : kEnumerableProperty ,
162
+ [ SymbolToStringTag ] : {
163
+ __proto__ : null ,
164
+ configurable : true ,
165
+ value : 'DecompressionStream' ,
166
+ } ,
157
167
} ) ;
158
168
159
169
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