mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 10:15:37 +02:00
Merge pull request #15569 from Snuffleupagus/rm-worker-GetOperatorList-UnsupportedFeature
[api-minor] Stop sending "UnsupportedFeature" from the worker-thread GetOperatorList-handling
This commit is contained in:
commit
d5036d7bfe
1 changed files with 0 additions and 7 deletions
|
@ -27,7 +27,6 @@ import {
|
||||||
stringToPDFString,
|
stringToPDFString,
|
||||||
UnexpectedResponseException,
|
UnexpectedResponseException,
|
||||||
UnknownErrorException,
|
UnknownErrorException,
|
||||||
UNSUPPORTED_FEATURES,
|
|
||||||
VerbosityLevel,
|
VerbosityLevel,
|
||||||
warn,
|
warn,
|
||||||
} from "../shared/util.js";
|
} from "../shared/util.js";
|
||||||
|
@ -728,12 +727,6 @@ class WorkerMessageHandler {
|
||||||
if (task.terminated) {
|
if (task.terminated) {
|
||||||
return; // ignoring errors from the terminated thread
|
return; // ignoring errors from the terminated thread
|
||||||
}
|
}
|
||||||
// For compatibility with older behavior, generating unknown
|
|
||||||
// unsupported feature notification on errors.
|
|
||||||
handler.send("UnsupportedFeature", {
|
|
||||||
featureId: UNSUPPORTED_FEATURES.errorOperatorList,
|
|
||||||
});
|
|
||||||
|
|
||||||
sink.error(reason);
|
sink.error(reason);
|
||||||
|
|
||||||
// TODO: Should `reason` be re-thrown here (currently that casues
|
// TODO: Should `reason` be re-thrown here (currently that casues
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue