Skip to content

Commit

Permalink
Merge pull request mozilla#18115 from Snuffleupagus/freeze-evaluatorO…
Browse files Browse the repository at this point in the history
…ptions

Freeze `evaluatorOptions` in the src/core/pdf_manager.js file
  • Loading branch information
Snuffleupagus committed May 21, 2024
2 parents db7e68a + 3cd6c6c commit 59637c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/pdf_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 59637c1

Please sign in to comment.