pdf.js/src/shared
Jonas Jenwald 7cc761a8c0 Polyfill structuredClone with core-js (PR 13948 follow-up)
This allows us to remove the manually implemented `structuredClone` polyfill, thus reducing the maintenance burden for the `LoopbackPort` class; refer to https://github.com/zloirock/core-js#structuredclone

*Please note:* While `structuredClone` support landed already in Firefox 94, Google Chrome only added it in version 98 (currently in Beta). However, given that the `LoopbackPort` will only be used together with *fake workers* in browsers this shouldn't be too much of a problem.[1]
For Node.js environments, where *fake workers* are unfortunately necessary, using a `legacy/`-build is already required which thus guarantees that the `structuredClone` polyfill is available.

Also, the patch updates core-js to the latest version since that one includes `structuredClone` improvements; please see https://github.com/zloirock/core-js/releases/tag/v3.20.3

---
[1] Given that we only support browsers with proper worker support, if *fake workers* are being used that essentially indicates a configuration problem/error.
2022-01-27 21:11:42 +01:00
..
.eslintrc Enable the ESLint no-var rule globally 2021-03-13 16:12:53 +01:00
cffStandardStrings.js Fix errors reported by the comma-spacing ESLint rule 2016-12-12 20:35:53 +01:00
compatibility.js Polyfill structuredClone with core-js (PR 13948 follow-up) 2022-01-27 21:11:42 +01:00
fonts_utils.js Fix some static static analyzer warnings (issue 11965) 2020-11-01 12:08:38 +01:00
is_node.js Make the detection of Node.js environments on Electron strict. 2020-07-12 10:56:17 +09:00
message_handler.js [api-minor] Only use Workers when postMessage transfers are supported (PR 11123 follow-up) 2021-11-19 16:47:58 +01:00
scripting_utils.js [Regression] Prevent the *built* pdf.scripting.js/pdf.sandbox.js files from accidentally including most of the main-thread code (PR 12631 follow-up) 2020-12-04 14:17:26 +01:00
util.js Replace some assert usage with unreachable in the src/shared/util.js file 2022-01-15 13:01:25 +01:00