pdf.js/external/builder
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
..
fixtures Add the external/builder/fixtures/ directory to .eslintignore, to avoid having to disable various lint rules locally 2017-01-10 14:45:40 +01:00
fixtures_esprima Fix duplicated function name in the Esprima fixtures 2018-08-25 16:23:20 +02:00
builder.js Revert "For mozcentral use Firefox color theme instead of system theme." since -moz-toolbar-prefers-color-scheme was removed 2021-10-17 12:29:25 +02:00
preprocessor2.js Add support for modern ECMAScript class features 2021-10-22 22:01:17 +02:00
test-fixtures_esprima.js Replace *most* cases of var with let/const in the external/builder/ folder 2021-03-13 17:47:58 +01:00
test-fixtures.js Account for changes in eslint-plugin-import version 2.23.0 2021-05-16 11:50:55 +02:00