File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -358,6 +358,7 @@ function initializeTransformStream(
358
358
readableSizeAlgorithm ) {
359
359
360
360
const writable = new WritableStream ( {
361
+ __proto__ : null ,
361
362
start ( ) { return startPromise . promise ; } ,
362
363
write ( chunk ) {
363
364
return transformStreamDefaultSinkWriteAlgorithm ( stream , chunk ) ;
@@ -374,6 +375,7 @@ function initializeTransformStream(
374
375
} ) ;
375
376
376
377
const readable = new ReadableStream ( {
378
+ __proto__ : null ,
377
379
start ( ) { return startPromise . promise ; } ,
378
380
pull ( ) {
379
381
return transformStreamDefaultSourcePullAlgorithm ( stream ) ;
Original file line number Diff line number Diff line change @@ -186,3 +186,22 @@ class Source {
186
186
inspect ( controller , { depth : 0 } ) ,
187
187
/ T r a n s f o r m S t r e a m D e f a u l t C o n t r o l l e r \[ / ) ;
188
188
}
189
+
190
+ {
191
+ Object . defineProperty ( Object . prototype , 'type' , {
192
+ get : common . mustNotCall ( 'get %Object.prototype%.type' ) ,
193
+ set : common . mustNotCall ( 'set %Object.prototype%.type' ) ,
194
+ configurable : true ,
195
+ } ) ;
196
+
197
+ new TransformStream ( {
198
+ transform ( chunk , controller ) {
199
+ controller . enqueue ( chunk ) ;
200
+ } ,
201
+ flush ( controller ) {
202
+ controller . terminate ( ) ;
203
+ }
204
+ } ) ;
205
+
206
+ delete Object . prototype . type ;
207
+ }
You can’t perform that action at this time.
0 commit comments