@@ -495,7 +495,7 @@ class ReadableStream {
495495 }
496496
497497 [ kInspect ] ( depth , options ) {
498- return customInspect ( depth , options , 'ReadableStream' , {
498+ return customInspect ( depth , options , this [ kType ] , {
499499 locked : this . locked ,
500500 state : this [ kState ] . state ,
501501 } ) ;
@@ -651,7 +651,7 @@ class ReadableStreamBYOBRequest {
651651 }
652652
653653 [ kInspect ] ( depth , options ) {
654- return customInspect ( depth , options , 'ReadableStreamBYOBRequest' , {
654+ return customInspect ( depth , options , this [ kType ] , {
655655 view : this . view ,
656656 controller : this [ kState ] . controller ,
657657 } ) ;
@@ -797,7 +797,7 @@ class ReadableStreamDefaultReader {
797797 }
798798
799799 [ kInspect ] ( depth , options ) {
800- return customInspect ( depth , options , 'ReadableStreamDefaultReader' , {
800+ return customInspect ( depth , options , this [ kType ] , {
801801 stream : this [ kState ] . stream ,
802802 readRequests : this [ kState ] . readRequests . length ,
803803 close : this [ kState ] . close . promise ,
@@ -914,7 +914,7 @@ class ReadableStreamBYOBReader {
914914 }
915915
916916 [ kInspect ] ( depth , options ) {
917- return customInspect ( depth , options , 'ReadableStreamBYOBReader' , {
917+ return customInspect ( depth , options , this [ kType ] , {
918918 stream : this [ kState ] . stream ,
919919 requestIntoRequests : this [ kState ] . requestIntoRequests . length ,
920920 close : this [ kState ] . close . promise ,
@@ -977,10 +977,7 @@ class ReadableStreamDefaultController {
977977 }
978978
979979 [ kInspect ] ( depth , options ) {
980- return customInspect (
981- depth ,
982- options ,
983- 'ReadableStreamDefaultController' , { } ) ;
980+ return customInspect ( depth , options , this [ kType ] , { } ) ;
984981 }
985982}
986983
@@ -1109,10 +1106,7 @@ class ReadableByteStreamController {
11091106 }
11101107
11111108 [ kInspect ] ( depth , options ) {
1112- return customInspect (
1113- depth ,
1114- options ,
1115- 'ReadableByteStreamController' , { } ) ;
1109+ return customInspect ( depth , options , this [ kType ] , { } ) ;
11161110 }
11171111}
11181112
0 commit comments