Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (typeof ReadableStream !== 'undefined') {
try {
new ReadableStream({
start: function start(controller) {
controller.close();
}
});
isReadableStreamSupported = true;
} catch (e) {}
}
if (isReadableStreamSupported) {
exports.ReadableStream = ReadableStream;
} else {
exports.ReadableStream = require('web-streams-polyfill/dist/ponyfill').ReadableStream;
}
}