Tests: fix stream polyfilling in legacy browsers

web-streams-polyfill v4 has a different entrypoint for the polyfills.
This commit is contained in:
larabr 2024-07-04 14:51:59 +02:00
parent f729d2bfa7
commit 40b6427658

View File

@ -30,7 +30,7 @@ globalThis.loadStreamsPolyfill = function() {
// do not polyfill Node
const detectNodeWebStreams = () => typeof globalThis.process === 'object' && typeof globalThis.process.versions === 'object' && globalThis.ReadableStream;
return detectNodeWebStreams() || import('web-streams-polyfill');
return detectNodeWebStreams() || import('web-streams-polyfill/polyfill');
};
import runWorkerTests from './worker';