File tree Expand file tree Collapse file tree 4 files changed +5
-6
lines changed Expand file tree Collapse file tree 4 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 11'use strict' ; 
22
33const  assert  =  require ( 'internal/assert' ) ; 
4- const  util  =  require ( 'util' ) ; 
54const  {  Socket }  =  require ( 'net' ) ; 
65const  {  JSStream }  =  internalBinding ( 'js_stream' ) ; 
76const  uv  =  internalBinding ( 'uv' ) ; 
8- const  debug  =  util . debuglog ( 'stream_socket' ) ; 
7+ const  debug  =  require ( 'internal/ util/debuglog' ) . debuglog ( 'stream_socket' ) ; 
98const  {  owner_symbol }  =  require ( 'internal/async_hooks' ) . symbols ; 
109const  {  ERR_STREAM_WRAP  }  =  require ( 'internal/errors' ) . codes ; 
1110
Original file line number Diff line number Diff line change 11'use strict' ; 
22
33const  {  Buffer }  =  require ( 'buffer' ) ; 
4- const  {  inspect }  =  require ( 'util' ) ; 
4+ const  {  inspect }  =  require ( 'internal/ util/inspect ' ) ; 
55
66function  copyBuffer ( src ,  target ,  offset )  { 
77  Buffer . prototype . copy . call ( src ,  target ,  offset ) ; 
Original file line number Diff line number Diff line change 44'use strict' ; 
55
66const  stream  =  require ( 'stream' ) ; 
7- const  util  =  require ( 'util' ) ; 
87
98const  { 
109  getDefaultEncoding
@@ -17,7 +16,8 @@ function LazyTransform(options) {
1716  this . writable  =  true ; 
1817  this . readable  =  true ; 
1918} 
20- util . inherits ( LazyTransform ,  stream . Transform ) ; 
19+ Object . setPrototypeOf ( LazyTransform . prototype ,  stream . Transform . prototype ) ; 
20+ Object . setPrototypeOf ( LazyTransform ,  stream . Transform ) ; 
2121
2222function  makeGetter ( name )  { 
2323  return  function ( )  { 
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ Stream.Stream = Stream;
4343
4444// Internal utilities 
4545try  { 
46-   const  types  =  require ( 'util'  ) . types ; 
46+   const  types  =  require ( 'internal/ util/types'  ) ; 
4747  if  ( types  &&  typeof  types . isUint8Array  ===  'function' )  { 
4848    Stream . _isUint8Array  =  types . isUint8Array ; 
4949  }  else  { 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments