Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify the ReadableStream polyfill #13896

Merged

Commits on Aug 13, 2021

  1. Simplify the ReadableStream polyfill

    At this point in time, all of the supported browsers (in the PDF.js project) have native `ReadableStream` implementations; see https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream#browser_compatibility
    
    Hence the polyfill is *only* necessary in Node.js environments now, and we shouldn't need to do any detailed feature detection either (since that was only done for the non-Chromium versions of the MS Edge browser).
    Finally, we can slightly reduce the size of the Chromium-extension since the polyfill shouldn't be needed there either.
    Snuffleupagus committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    e2aa067 View commit details
    Browse the repository at this point in the history