mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-07-09 00:25:51 +02:00
Remove TODO-comments in the "GetOperatorList" and "GetTextContent" handlers
Any errors are already propagated via the stream-sinks, since these handlers use `ReadableStream`, and as mentioned in the TODO-comments re-throwing errors will lead to "spam" in the console; hence let's just remove them.
This commit is contained in:
parent
18f9aa91b6
commit
0d5a7d8adc
@ -929,9 +929,6 @@ class WorkerMessageHandler {
|
|||||||
return; // ignoring errors from the terminated thread
|
return; // ignoring errors from the terminated thread
|
||||||
}
|
}
|
||||||
sink.error(reason);
|
sink.error(reason);
|
||||||
|
|
||||||
// TODO: Should `reason` be re-thrown here (currently that casues
|
|
||||||
// "Uncaught exception: ..." messages in the console)?
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
@ -974,9 +971,6 @@ class WorkerMessageHandler {
|
|||||||
return; // ignoring errors from the terminated thread
|
return; // ignoring errors from the terminated thread
|
||||||
}
|
}
|
||||||
sink.error(reason);
|
sink.error(reason);
|
||||||
|
|
||||||
// TODO: Should `reason` be re-thrown here (currently that casues
|
|
||||||
// "Uncaught exception: ..." messages in the console)?
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user