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

compatibility with frozen prototypes #6265

Open
wants to merge 1 commit into
base: v1.x
Choose a base branch
from

Conversation

turadg
Copy link

@turadg turadg commented Feb 27, 2024

fixes: #6264

The original code used assignment to override the constructor property. However, if the prototype is frozen, as it is under Hardened JS (aka SES) or under the Node frozen intrinsics flag, then this assignment fails due to the JavaScript override mistake.

@turadg
Copy link
Author

turadg commented Apr 8, 2024

@DigitalBrainJS I see you've approved recent PRs. Is this one acceptable to you?

@turadg turadg changed the title evade override mistake compatibility with frozen prototypes Dec 5, 2024
@turadg
Copy link
Author

turadg commented Dec 5, 2024

https://github.com/axios/axios/blob/v1.x/CONTRIBUTING.md says,

We are open to, and grateful for, any contributions made by the community.

@jasonsaayman @remcohaszing are you open to this one?

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.

evade override mistake
1 participant