Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[api-minor] Stop translating logical assignment in non-
legacy
build…
…s (PR 12887 follow-up) When we started using logical assignment operators in the PDF.js project, the feature was new enough that browser support was somewhat limited. That should no longer be the case, since logical assignment has now been available for approximately one year. Hence this patch, which (basically) reverts PR 12887, since using the Babel plugin unconditionally was never intended to be a permanent thing. For browsers/environments without native logical assignment support, users will now have to use a `legacy` build instead. Please refer to the browser compatibility information on MDN: - https://wiki.mozilla.org/RapidRelease/Calendar - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Logical_OR_assignment#browser_compatibility - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Logical_nullish_assignment#browser_compatibility Note also the release information for the major browsers: - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Logical_nullish_assignment#browser_compatibility - https://en.wikipedia.org/wiki/Google_Chrome_version_history - https://en.wikipedia.org/wiki/Safari_version_history#Safari_14
- Loading branch information