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

Avoid freezing Errors #852

Closed

Conversation

drarmstr
Copy link
Contributor

Summary: Avoid freezing Error objects. They are usually encountered when thrown by selectors. This can disrupt environments which expect mutable Errors. Freezing is intended to help catch issues with users changing state by mutating objects and errors are not usually mutated to reflect state changes anyway.

Differential Revision: D26090167

Summary: Avoid freezing `Error` objects.  They are usually encountered when thrown by selectors.  This can disrupt environments which expect mutable Errors.  Freezing is intended to help catch issues with users changing state by mutating objects and errors are not usually mutated to reflect state changes anyway.

Differential Revision: D26090167

fbshipit-source-id: 5651f01d0953c3eda815742ecdf992ba425788d4
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Jan 26, 2021
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D26090167

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in ac9df69.

@drarmstr drarmstr deleted the export-D26090167 branch February 3, 2021 21:44
@drarmstr drarmstr self-assigned this Feb 3, 2021
AlexGuz23 pushed a commit to AlexGuz23/Recoil that referenced this pull request Nov 3, 2022
Summary:
Pull Request resolved: facebookexperimental/Recoil#852

Avoid freezing `Error` objects.  They are usually encountered when thrown by selectors.  This can disrupt environments which expect mutable Errors.  Freezing is intended to help catch issues with users changing state by mutating objects and errors are not usually mutated to reflect state changes anyway.

Reviewed By: mondaychen

Differential Revision: D26090167

fbshipit-source-id: b2450bc90441701ad6bf3c0db2783ae60285d25d
snipershooter0701 pushed a commit to snipershooter0701/Recoil that referenced this pull request Mar 5, 2023
Summary:
Pull Request resolved: facebookexperimental/Recoil#852

Avoid freezing `Error` objects.  They are usually encountered when thrown by selectors.  This can disrupt environments which expect mutable Errors.  Freezing is intended to help catch issues with users changing state by mutating objects and errors are not usually mutated to reflect state changes anyway.

Reviewed By: mondaychen

Differential Revision: D26090167

fbshipit-source-id: b2450bc90441701ad6bf3c0db2783ae60285d25d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants