@@ -17,12 +17,12 @@ const check = readFileSync(__filename, { encoding: 'utf8' });
1717 const dec = new TextDecoder ( ) ;
1818 const file = await open ( __filename ) ;
1919 let data = '' ;
20- for await ( const chunk of file . readableStream ( ) )
20+ for await ( const chunk of file . readableWebStream ( ) )
2121 data += dec . decode ( chunk ) ;
2222
2323 assert . strictEqual ( check , data ) ;
2424
25- assert . throws ( ( ) => file . readableStream ( ) , {
25+ assert . throws ( ( ) => file . readableWebStream ( ) , {
2626 code : 'ERR_INVALID_STATE' ,
2727 } ) ;
2828
@@ -33,7 +33,7 @@ const check = readFileSync(__filename, { encoding: 'utf8' });
3333 const file = await open ( __filename ) ;
3434 await file . close ( ) ;
3535
36- assert . throws ( ( ) => file . readableStream ( ) , {
36+ assert . throws ( ( ) => file . readableWebStream ( ) , {
3737 code : 'ERR_INVALID_STATE' ,
3838 } ) ;
3939} ) ( ) . then ( common . mustCall ( ) ) ;
@@ -42,7 +42,7 @@ const check = readFileSync(__filename, { encoding: 'utf8' });
4242 const file = await open ( __filename ) ;
4343 file . close ( ) ;
4444
45- assert . throws ( ( ) => file . readableStream ( ) , {
45+ assert . throws ( ( ) => file . readableWebStream ( ) , {
4646 code : 'ERR_INVALID_STATE' ,
4747 } ) ;
4848} ) ( ) . then ( common . mustCall ( ) ) ;
0 commit comments