mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Change PartialEvaluator.setGState
to an async
method
Since this method calls `Dict.get` to fetch data, there could thus be `Error`s thrown in corrupt PDF documents when attempting to resolve an indirect object. To ensure that this won't ever become a problem, we change the method to be `async` such that a rejected Promise would be returned and general OperatorList parsing won't break.
This commit is contained in:
parent
981ff41b5f
commit
03547b5633
1 changed files with 1 additions and 1 deletions
|
@ -832,7 +832,7 @@ class PartialEvaluator {
|
|||
throw reason;
|
||||
}
|
||||
|
||||
setGState({
|
||||
async setGState({
|
||||
resources,
|
||||
gState,
|
||||
operatorList,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue