Skip to content

AbortController exception in the wrong place and cannot be caught #55742

@uriva

Description

@uriva

Version

23.1.0

What steps will reproduce the bug?

the code in question is https://github.com/webtorrent/bittorrent-tracker/blob/master/lib/client/http-tracker.js#L147

I'm getting the DOMException from the line where the AbortController is created, that is outside the try/catch

How often does it reproduce? Is there a required condition?

Haven't been able to reproduce it locally, happens on a google cloud run instance

What is the expected behavior? Why is that the expected behavior?

The exception should be caught by the try/catch

What do you see instead?

The exception is thrown from an unexpected location.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions