mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Add an API unit-test for the stopAtErrors
option (PRs 8240 and 8922 follow-up)
Also fixes an inconsistency in the 'PageError' handler, for `getOperatorList`, in the API.
This commit is contained in:
parent
b01cc55cfd
commit
c7fb7116d6
2 changed files with 40 additions and 0 deletions
|
@ -2101,6 +2101,8 @@ class WorkerTransport {
|
|||
|
||||
if (intentState.displayReadyCapability) {
|
||||
intentState.displayReadyCapability.reject(new Error(data.error));
|
||||
} else if (intentState.opListReadCapability) {
|
||||
intentState.opListReadCapability.reject(new Error(data.error));
|
||||
} else {
|
||||
throw new Error(data.error);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue