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
} = primordials ;
6
7
7
8
const {
@@ -137,11 +138,21 @@ class DecompressionStream {
137
138
ObjectDefineProperties ( CompressionStream . prototype , {
138
139
readable : kEnumerableProperty ,
139
140
writable : kEnumerableProperty ,
141
+ [ SymbolToStringTag ] : {
142
+ __proto__ : null ,
143
+ configurable : true ,
144
+ value : 'CompressionStream' ,
145
+ } ,
140
146
} ) ;
141
147
142
148
ObjectDefineProperties ( DecompressionStream . prototype , {
143
149
readable : kEnumerableProperty ,
144
150
writable : kEnumerableProperty ,
151
+ [ SymbolToStringTag ] : {
152
+ __proto__ : null ,
153
+ configurable : true ,
154
+ value : 'DecompressionStream' ,
155
+ } ,
145
156
} ) ;
146
157
147
158
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