Skip to content

Commit

Permalink
Merge pull request #12423 from Snuffleupagus/escodegen-2
Browse files Browse the repository at this point in the history
Update `escodegen` to version 2.0
  • Loading branch information
timvandermeij committed Sep 29, 2020
2 parents 6728c8f + db4cefb commit 8fa4e48
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
6 changes: 6 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,12 @@ function createWebpackConfig(defines, output) {
loose: true,
},
],
[
"@babel/plugin-proposal-optional-chaining",
{
loose: true,
},
],
"@babel/plugin-transform-modules-commonjs",
[
"@babel/plugin-transform-runtime",
Expand Down
16 changes: 12 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"devDependencies": {
"@babel/core": "^7.11.6",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.10.4",
"@babel/plugin-proposal-optional-chaining": "^7.11.0",
"@babel/plugin-transform-modules-commonjs": "^7.10.4",
"@babel/plugin-transform-runtime": "^7.11.5",
"@babel/preset-env": "^7.11.5",
Expand All @@ -15,7 +16,7 @@
"core-js": "^3.6.5",
"cross-env": "^7.0.2",
"es-module-shims": "^0.4.7",
"escodegen": "^1.14.3",
"escodegen": "^2.0.0",
"eslint": "^7.9.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-fetch-options": "^0.0.5",
Expand Down
2 changes: 1 addition & 1 deletion web/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ const PDFViewerApplication = {
return undefined; // Ignore errors for previously opened PDF files.
}

const message = exception && exception.message;
const message = exception?.message;
let loadingErrorMessage;
if (exception instanceof InvalidPDFException) {
// change error message also for other builds
Expand Down

0 comments on commit 8fa4e48

Please sign in to comment.