-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Disallow setting assumptions to false in presets
#12498
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
Disallow setting assumptions to false in presets
#12498
Conversation
|
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/35177/ |
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 8435f26:
|
| loadOptions({ | ||
| presets: [() => ({ assumptions: { mutableTemplateObject: false } })], | ||
| }), | ||
| ).toThrow(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: add error message assertion here so it doesn't pass on incorrect error messages.
* Disallow setting assumptions to `false` in presets * Error message * Fix
* Disallow setting assumptions to `false` in presets * Error message * Fix
* Disallow setting assumptions to `false` in presets * Error message * Fix
* Disallow setting assumptions to `false` in presets * Error message * Fix
* Disallow setting assumptions to `false` in presets * Error message * Fix
* Disallow setting assumptions to `false` in presets * Error message * Fix
- Disallow setting assumptions to `false` in presets (#12498)
- Disallow setting assumptions to `false` in presets (#12498)
While reading the RFC again, I noticed that my previous implementation didn't exactly reflect it.
(discussion - Sorry I minimized it because I coudn't find the "Mark as resolved" button and now I can't un-minimize them)
This PR needs to be merged before 7.13, otherwise it would be a breaking change.