mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Stop re-throwing errors in the 'GetOperatorList' and 'GetTextContent' handlers, in src/core/worker.js
These functions aren't returning anything, now that they're using `ReadableStream`s, and it thus doesn't seem necessary to re-throw errors (also given the console message that's caused by it).
This commit is contained in:
parent
66e0dd1b06
commit
711040ecc5
2 changed files with 6 additions and 7 deletions
|
@ -501,7 +501,9 @@ var WorkerMessageHandler = {
|
|||
{ featureId: UNSUPPORTED_FEATURES.unknown, });
|
||||
|
||||
sink.error(reason);
|
||||
throw reason;
|
||||
|
||||
// TODO: Should `reason` be re-thrown here (currently that casues
|
||||
// "Uncaught exception: ..." messages in the console)?
|
||||
});
|
||||
});
|
||||
}, this);
|
||||
|
@ -538,7 +540,9 @@ var WorkerMessageHandler = {
|
|||
return; // ignoring errors from the terminated thread
|
||||
}
|
||||
sink.error(reason);
|
||||
throw reason;
|
||||
|
||||
// TODO: Should `reason` be re-thrown here (currently that casues
|
||||
// "Uncaught exception: ..." messages in the console)?
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue