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

Add missing promise polyfill deps for preset-env's useBuiltIns: usage #7400

Merged
merged 1 commit into from
Feb 23, 2018

Conversation

existentialism
Copy link
Member

Q                       A
Fixed Issues? Fixes #7395
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR
Any Dependency Changes?
License MIT

@existentialism existentialism added PR: Bug Fix 🐛 A type of pull request used for our changelog categories pkg: preset-env labels Feb 20, 2018
@babel-bot
Copy link
Collaborator

babel-bot commented Feb 20, 2018

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/6926/

Copy link
Member

@zloirock zloirock left a comment

Choose a reason for hiding this comment

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

The same should be added at least also for Promise.race.

@zloirock
Copy link
Member

zloirock commented Feb 20, 2018

Also, we could have the same problem for collections constructors - they also use iterators when having arguments. Array iterator is not the only dependency of Promise, see this entry point (es6.array.iterator added implicitly in web.dom.iterable).

@existentialism
Copy link
Member Author

@zloirock Thanks, great catch! It's probably better for us to just add es6.object.to-string, es6.string.iterator and web.dom.iterable to Promise built in definition instead?

@zloirock
Copy link
Member

@existentialism es6.object.to-string to Promise built in definition, es6.string.iterator and web.dom.iterable to Promise.all and Promise.race - we need it only for those methods.

@existentialism
Copy link
Member Author

existentialism commented Feb 21, 2018

@zloirock updated! thanks again for the help

@existentialism existentialism changed the title Add array.iterator with Promise.all in preset-env's useBuiltIns: usage @existentialism Add missing promise polyfill deps for preset-env's useBuiltIns: usage Feb 21, 2018
@existentialism existentialism changed the title @existentialism Add missing promise polyfill deps for preset-env's useBuiltIns: usage Add missing promise polyfill deps for preset-env's useBuiltIns: usage Feb 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
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.

Feature detection error in babel-preset-env and IE11
3 participants