Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(ext/fetch): do not share error instance #27941

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

kt3k
Copy link
Member

@kt3k kt3k commented Feb 3, 2025

The issue like #27715 is harder to debug because of the shared error instance which is created at the top-level of the file (and therefore it doesn't show any stacktrace when thrown).

This change it to create each instance of AbortError in each code path.

(Question: Is this in this way because of the perf concern?)

Maybe related to #23559

Copy link
Member

@littledivy littledivy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

2 participants