1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-23 08:38:06 +02:00

Freeze evaluatorOptions in the src/core/pdf_manager.js file

Given that these options are passed from the API we don't want to accidentally modify them.
This commit is contained in:
Jonas Jenwald 2024-05-18 14:26:38 +02:00
parent 63b66b412c
commit 3cd6c6c0e6

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() {