File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const POOL_SIZE = 65536;
4
4
5
5
if ( ! globalThis . ReadableStream ) {
6
6
try {
7
- Object . assign ( globalThis , require ( 'stream/web' ) )
7
+ Object . assign ( globalThis , require ( 'node: stream/web' ) )
8
8
} catch ( error ) {
9
9
// TODO: Remove when only supporting node >= 16.5.0
10
10
Object . assign ( globalThis , require ( 'web-streams-polyfill/dist/ponyfill.es2018.js' ) )
Original file line number Diff line number Diff line change @@ -390,7 +390,7 @@ test('returns a readable stream', t => {
390
390
391
391
test ( 'checking instanceof blob#stream' , async t => {
392
392
// eslint-disable-next-line node/no-unsupported-features/es-syntax
393
- const { ReadableStream} = await import ( 'stream/web' ) . catch ( _ => import ( 'web-streams-polyfill/dist/ponyfill.es2018.js' ) ) ;
393
+ const { ReadableStream} = await import ( 'node: stream/web' ) . catch ( _ => import ( 'web-streams-polyfill/dist/ponyfill.es2018.js' ) ) ;
394
394
const stream = new File ( [ ] , '' ) . stream ( ) ;
395
395
t . true ( stream instanceof ReadableStream ) ;
396
396
} ) ;
You can’t perform that action at this time.
0 commit comments