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

Note the need for an Object.assign polyfill #2490

Closed
wants to merge 2 commits into from
Closed

Note the need for an Object.assign polyfill #2490

wants to merge 2 commits into from

Conversation

jquense
Copy link
Contributor

@jquense jquense commented Nov 8, 2014

Not sure if this is enough to just place it in the note. Or whether the MDN polyfill link is appropriate, I wanted to provide a solution along with the warning. Another option is pointing them to the react polyfil in the source...

refrences #2488

@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at cla@fb.com. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@@ -68,4 +68,5 @@ Merging two objects can be expressed as:

> Note:
>
> Use the [JSX command-line tool](http://npmjs.org/package/react-tools) with the `--harmony` flag to activate the experimental ES7 syntax.
> Use the [JSX command-line tool](http://npmjs.org/package/react-tools) with the `--harmony` flag to activate the experimental ES7 syntax. You may also need to [polyfill](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign#Polyfill) `Object.assign`
Copy link
Collaborator

Choose a reason for hiding this comment

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

How about:

This experimental syntax compiles into an ES6 Object.assign call not yet supported by most browsers, so you will likely need to include [a polyfill] if you want to use it.

Thanks for sending in this PR!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The second "experimental" felt, to me, a bit repetitive, so I left it out, but i can add it back if it feels unclear still. On a whole that wording is much better than my stab at it.

@zpao
Copy link
Member

zpao commented Dec 2, 2014

We're actually just going to get rid of this mention in the docs entirely in #2636. Thanks for the effort though! We appreciate you taking the time.

@zpao zpao closed this Dec 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants