mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 01:35:43 +02:00
Ensure that "GetAnnotations" errors are propagated to the main-thread (PR 15267 follow-up)
With the changes in PR 15267 we're now accidentally swallowing "GetAnnotations" errors, rather than propagating them to the main-thread as intended.
This commit is contained in:
parent
0fca6e187c
commit
14b0e8c0b6
1 changed files with 1 additions and 0 deletions
|
@ -544,6 +544,7 @@ class WorkerMessageHandler {
|
||||||
},
|
},
|
||||||
reason => {
|
reason => {
|
||||||
finishWorkerTask(task);
|
finishWorkerTask(task);
|
||||||
|
throw reason;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue