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

fix: ErrorInfo extends Error #1129

Merged
merged 2 commits into from
Feb 27, 2023
Merged

fix: ErrorInfo extends Error #1129

merged 2 commits into from
Feb 27, 2023

Conversation

owenpearson
Copy link
Member

@owenpearson owenpearson commented Feb 17, 2023

TypeScript doesn't properly let you extend builtin classes, hence the call to Object.setPrototypeOf. This has the very minor caveat that ErrorInfo.code may not be set correctly for authUrl 403 responses in IE < 11, but I think that's insignificant enough to not block this change.

@github-actions github-actions bot temporarily deployed to staging/pull/1129/bundle-report February 17, 2023 11:44 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1129/typedoc February 17, 2023 11:45 Inactive
@owenpearson owenpearson force-pushed the errorinfo-extends-error branch from 0129846 to 05d1ab0 Compare February 17, 2023 11:45
@github-actions github-actions bot temporarily deployed to staging/pull/1129/typedoc February 17, 2023 11:47 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1129/bundle-report February 17, 2023 11:47 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1129/bundle-report February 17, 2023 15:31 Inactive
@owenpearson owenpearson marked this pull request as ready for review February 17, 2023 15:32
@github-actions github-actions bot temporarily deployed to staging/pull/1129/typedoc February 17, 2023 15:32 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants