File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 22
33const {
44 ObjectDefineProperties,
5+ SymbolToStringTag,
56} = primordials ;
67
78const {
@@ -137,11 +138,21 @@ class DecompressionStream {
137138ObjectDefineProperties ( CompressionStream . prototype , {
138139 readable : kEnumerableProperty ,
139140 writable : kEnumerableProperty ,
141+ [ SymbolToStringTag ] : {
142+ __proto__ : null ,
143+ configurable : true ,
144+ value : 'CompressionStream' ,
145+ } ,
140146} ) ;
141147
142148ObjectDefineProperties ( DecompressionStream . prototype , {
143149 readable : kEnumerableProperty ,
144150 writable : kEnumerableProperty ,
151+ [ SymbolToStringTag ] : {
152+ __proto__ : null ,
153+ configurable : true ,
154+ value : 'DecompressionStream' ,
155+ } ,
145156} ) ;
146157
147158module . exports = {
Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ async function test(format) {
1515 const gzip = new CompressionStream ( format ) ;
1616 const gunzip = new DecompressionStream ( format ) ;
1717
18+ assert . strictEqual ( gzip [ Symbol . toStringTag ] , 'CompressionStream' ) ;
19+ assert . strictEqual ( gunzip [ Symbol . toStringTag ] , 'DecompressionStream' ) ;
20+
1821 gzip . readable . pipeTo ( gunzip . writable ) . then ( common . mustCall ( ) ) ;
1922
2023 const reader = gunzip . readable . getReader ( ) ;
You can’t perform that action at this time.
0 commit comments