From 01ec5e3b32ffadead647aa45e6345b50f61f886b Mon Sep 17 00:00:00 2001 From: nmtigor Date: Tue, 20 Sep 2022 11:09:44 +0200 Subject: [PATCH] [JS] Remove duplicate `this._document` assignment in the `App`-class This property is already being assigned earlier in the constructor, see https://github.com/mozilla/pdf.js/blob/ea1d35976718a87d35846748016d843ea996d2e2/src/scripting_api/app.js#L42 --- src/scripting_api/app.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/scripting_api/app.js b/src/scripting_api/app.js index 1fb9e181b..c63c15180 100644 --- a/src/scripting_api/app.js +++ b/src/scripting_api/app.js @@ -66,7 +66,6 @@ class App extends PDFObject { this._timeoutCallbackId = 0; this._globalEval = data.globalEval; this._externalCall = data.externalCall; - this._document = data._document; } // This function is called thanks to the proxy