Skip to content

Fix core-js 2 builtin data for opera#11066

Merged
nicolo-ribaudo merged 1 commit intomasterfrom
fix-opera-core-js-data
Jan 29, 2020
Merged

Fix core-js 2 builtin data for opera#11066
nicolo-ribaudo merged 1 commit intomasterfrom
fix-opera-core-js-data

Conversation

@danez
Copy link
Copy Markdown
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
Copy Markdown
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.

3 participants