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

Merge pull request #18115 from Snuffleupagus/freeze-evaluatorOptions

Freeze `evaluatorOptions` in the src/core/pdf_manager.js file
This commit is contained in:
Jonas Jenwald 2024-05-21 12:19:04 +02:00 committed by GitHub
commit 59637c1fa8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -49,7 +49,7 @@ class BasePdfManager {
// the worker-thread code.
args.evaluatorOptions.isOffscreenCanvasSupported &&=
FeatureTest.isOffscreenCanvasSupported;
this.evaluatorOptions = args.evaluatorOptions;
this.evaluatorOptions = Object.freeze(args.evaluatorOptions);
}
get docId() {