1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 14:48:08 +02:00

Update the @javascript-obfuscator/escodegen package to the latest version

The only changes are support for [Class static initialization blocks](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Class_static_initialization_blocks), and the diff for the `node_modules\@javascript-obfuscator\escodegen\escodegen.js` file contains only:
```diff
@@ -1506,6 +1506,13 @@
             return result;
         },

+        StaticBlock: function (stmt, flags) {
+            return [
+                'static' + space,
+                this.BlockStatement(stmt, flags)
+            ];
+        },
+
         ThrowStatement: function (stmt, flags) {
             return [join(
                 'throw',
```
This commit is contained in:
Jonas Jenwald 2022-02-06 11:26:07 +01:00
parent 5f7b96c957
commit 38f6e675bc
2 changed files with 25 additions and 13 deletions

View file

@ -6,7 +6,7 @@
"@babel/plugin-transform-runtime": "^7.17.0",
"@babel/preset-env": "^7.16.11",
"@babel/runtime": "^7.17.0",
"@javascript-obfuscator/escodegen": "2.2.2",
"@javascript-obfuscator/escodegen": "2.3.0",
"acorn": "^8.7.0",
"autoprefixer": "^10.4.2",
"babel-loader": "^8.2.3",