Skip to content

Commit

Permalink
Merge pull request #15569 from Snuffleupagus/rm-worker-GetOperatorLis…
Browse files Browse the repository at this point in the history
…t-UnsupportedFeature

[api-minor] Stop sending "UnsupportedFeature" from the worker-thread GetOperatorList-handling
  • Loading branch information
Snuffleupagus authored Oct 14, 2022
2 parents 09d077d + f2f0a1e commit d5036d7
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/core/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import {
stringToPDFString,
UnexpectedResponseException,
UnknownErrorException,
UNSUPPORTED_FEATURES,
VerbosityLevel,
warn,
} from "../shared/util.js";
Expand Down Expand Up @@ -728,12 +727,6 @@ class WorkerMessageHandler {
if (task.terminated) {
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);

// TODO: Should `reason` be re-thrown here (currently that casues
Expand Down

0 comments on commit d5036d7

Please sign in to comment.