pdf.js/external
Jonas Jenwald 00f8fab8a5 Add support for modern ECMAScript class features
With ESLint 8 we should now finally be able to start using modern `class` features, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Public_class_fields and https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Private_class_fields

However, while both ESLint and Acorn now support this, it unfortunately turns out that Escodegen (which we use during building) still lack the necessary support. Looking at https://github.com/estools/escodegen there's not been any updates since last year, and there's also open PRs adding support for these new `class` features.

To avoid blocking usage of these `class` features in the PDF.js code-base, in particular *private* fields/methods, this patch thus proposes that we (hopefully temporarily) switch to an `escodegen` fork that has the necessary support; please see https://www.npmjs.com/package/@javascript-obfuscator/escodegen

While I have no reason to doubt the security of the `escodegen` fork, this patch nonetheless pins the version number. Furthermore, I've also diffed the output of the two `.js`-files in this forked package against the original files without finding anything that looks immediately "dangerous".
2021-10-22 22:01:17 +02:00
..
bcmaps Removes external/cmaps; adds binary cmaps to the repo 2014-03-17 13:30:27 -05:00
builder Add support for modern ECMAScript class features 2021-10-22 22:01:17 +02:00
cmapscompress Fix inefficient regular expressions in external/cmapscompress/parse.js 2021-08-01 12:12:42 +02:00
dist Add support for modern ECMAScript class features 2021-10-22 22:01:17 +02:00
importL10n Enable the ESLint no-var rule in the external/ folder 2021-03-14 11:43:25 +01:00
quickjs [JS] Use heap allocation when initializing quickjs sandbox (#13286) 2021-04-23 12:04:14 +02:00
standard_fonts Bundle the license-file for the Liberation fonts in the builds (PR 13517 follow-up) 2021-06-10 00:11:47 +02:00
systemjs Cache babel source map. 2021-04-09 10:34:54 -07:00
webL10n Stop dispatching a "localized" event from the webL10n library, since it's unused and may clash with the default viewer 2019-09-13 12:38:36 +02:00
webpack Enable the ESLint no-var rule in the external/ folder 2021-03-14 11:43:25 +01:00
.eslintrc Enable the ESLint no-var rule in the external/ folder 2021-03-14 11:43:25 +01:00
.gitignore Removes external/cmaps; adds binary cmaps to the repo 2014-03-17 13:30:27 -05:00