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

added polyfill message #1014

Closed

Conversation

edvinerikson
Copy link
Contributor

Fixes #690
I couldn't really find more es6 stuff other than what it checks (except for Map which got transpiled to _Map for some reason).
Not sure about tests.. Do we need a test for this and where should it go if so?
cc @josephsavona

@edvinerikson
Copy link
Contributor Author

Flow install seems to have some issues.


if (__DEV__) {
warning(
Promise && Array.prototype.find,
Copy link
Member

Choose a reason for hiding this comment

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

maybe change this to typeof Promise === 'function' to not throw if it's not defined.

(Or global.Promise, but I'm not sure that's working in all build systems?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought of doing global.Promise first but wasn't sure if it gets transformed correctly in browsers.
I'll go with the first. 👍

@kassens
Copy link
Member

kassens commented Apr 6, 2016

Thanks for doing this, just a small update please and we should be good to merge this.

@edvinerikson
Copy link
Contributor Author

Awesome, I've updated the PR :)

@kassens
Copy link
Member

kassens commented Apr 6, 2016

Thanks for the update!

@ghost ghost closed this in 5145876 Apr 6, 2016
@edvinerikson edvinerikson deleted the add-polyfill-message branch April 6, 2016 22:03
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants