1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #10969 from Snuffleupagus/api-test-stopAtErrors

Add an API unit-test for the `stopAtErrors` option (PRs 8240 and 8922 follow-up)
This commit is contained in:
Tim van der Meij 2019-07-14 14:47:57 +02:00 committed by GitHub
commit 13ebfec903
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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);
}