1
0
Fork 0
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:
Jonas Jenwald 2019-07-13 16:06:05 +02:00
parent b01cc55cfd
commit c7fb7116d6
2 changed files with 40 additions and 0 deletions

View file

@ -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);
}