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 core-js 2 builtin data for opera #11066

Merged
merged 1 commit into from Jan 29, 2020
Merged

Conversation

danez
Copy link
Member

@danez danez commented Jan 29, 2020

Q                       A
Fixed Issues? number to link the issues -->
Patch: Bug Fix? y
Major: Breaking Change? n
Minor: New Feature? n
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

Currently even when only targeting the latest opera browser, there are still a lot of core-js 2 builtins added.

This is because the check in build-data was using strict equal which never matched because number === string

While fixing this I also change the logic of this part a little bit to match what core-js-compat is doing as it is safer.

https://github.com/zloirock/core-js/blob/master/packages/core-js-compat/src/build-data.js#L41

@danez danez added PR: Bug Fix 🐛 A type of pull request used for our changelog categories area: compat-table pkg: preset-env labels Jan 29, 2020
Copy link
Member

@nicolo-ribaudo nicolo-ribaudo left a comment

Choose a reason for hiding this comment

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

Thanks!

@nicolo-ribaudo nicolo-ribaudo merged commit 1528d7d into master Jan 29, 2020
@nicolo-ribaudo nicolo-ribaudo deleted the fix-opera-core-js-data branch January 29, 2020 17:14
rajasekarm pushed a commit to rajasekarm/babel that referenced this pull request Feb 17, 2020
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Apr 30, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: compat-table outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: preset-env PR: Bug Fix 🐛 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants