Skip to content

Commit

Permalink
Update the main, and pdfjs-dist, README to also include recent ECMASc…
Browse files Browse the repository at this point in the history
…ript features

This adds "optional chaining" and "nullish coalescing" to the list of features needed when using the *modern*, i.e. non-translated/non-polyfilled, build of the PDF.js library.
  • Loading branch information
Snuffleupagus committed Jan 19, 2021
1 parent abd2346 commit 72953e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ Feel free to stop by our [Matrix room](https://chat.mozilla.org/#/room/#pdfjs:mo

### Online demo

Please note that the "Modern browsers" version assumes native support for
features such as e.g. `async`/`await`, and `ReadableStream`.
Please note that the "Modern browsers" version assumes native support for modern
features such as e.g. `async`/`await`, `ReadableStream`, optional chaining, and
nullish coalescing.

+ Modern browsers: https://mozilla.github.io/pdf.js/web/viewer.html

Expand Down
5 changes: 3 additions & 2 deletions external/dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ parsing and rendering PDFs.
This is a pre-built version of the PDF.js source code. It is automatically
generated by the build scripts.

For usage with older browsers/environments, without support for modern features
such as e.g. `async`/`await`, and `ReadableStream`, please see the `es5` folder.
For usage with older browsers or environments, without support for modern
features such as e.g. `async`/`await`, `ReadableStream`, optional chaining, and
nullish coalescing; please see the `es5` folder.

See https://github.com/mozilla/pdf.js for learning and contributing.

0 comments on commit 72953e8

Please sign in to comment.