Skip to content

fix(worker_stream): catch unhandled rejection in cancel - #22397

Closed
user-Param wants to merge 1 commit into
mozilla:masterfrom
user-Param:fix/unhandled-rejection-cancel-v2
Closed

user-Param wants to merge 1 commit into
mozilla:masterfrom
user-Param:fix/unhandled-rejection-cancel-v2

Conversation

@user-Param

Copy link
Copy Markdown

Fixes issue 22366. The cancel method on PDFWorkerStreamReader and PDFWorkerStreamRangeReader called this._reader.cancel without catching the returned promise, producing unhandled promise rejections. Added catch handler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants