You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configure PDF.js badly so that pdf.worker.js is a 404 page
Run pdfjs.getDocument
What is the expected behavior?
getDocument Promise gets rejected
What went wrong?
Since creating worker failed, setupFakeWorker is called.
Inside it, setupFakeWorkerGlobal() never resolves, nor never throws an error, if something bad happens with fakeWorker. So adding .catch() to setupFakeWorkerGlobal() or even wrapping it with try {} catch {} does not make any difference.
getDocument Promise is never resolved, does not throw an error.
The text was updated successfully, but these errors were encountered:
Attach (recommended) or Link to PDF file here:
Configuration:
Steps to reproduce the problem:
What is the expected behavior?
What went wrong?
setupFakeWorkerGlobal()
never resolves, nor never throws an error, if something bad happens with fakeWorker. So adding.catch()
tosetupFakeWorkerGlobal()
or even wrapping it withtry {} catch {}
does not make any difference.The text was updated successfully, but these errors were encountered: