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

[Relay] don't use the reserved word "await" as a method name #678

Closed
wants to merge 1 commit into from

Conversation

kassens
Copy link
Member

@kassens kassens commented Dec 11, 2015

Apparently await is missing from some lists of reserved words. Typically Babel or minifiers should quote await like they quote function in var x = {function: 1, await: 2}.

Instead of waiting for changes in Babel or webpack to trickle down, let's rename this for now.

Fixes #665.

Apparently `await` is missing from some lists of reserved words. Typically Babel
or minifiers should quote `await` like they quote `function`.

Instead of waiting for changes in Babel or webpack to trickle down, let's rename
this for now.

Fixes facebook#665.
@kassens
Copy link
Member Author

kassens commented Dec 11, 2015

@facebook-github-bot import

@facebook-github-bot
Copy link
Contributor

Thanks for importing. If you are an FB employee go to https://our.intern.facebook.com/intern/opensource/github/pull_request/1056988307667078/int_phab to review.

@kumarharsh
Copy link

Thanks for the PR. +1

@kassens kassens closed this in a5a853c Dec 11, 2015
@kassens kassens deleted the await-fix branch December 11, 2015 17:50
@gschammah
Copy link

is this fix going to be published to npm soon? thanks!

@kassens
Copy link
Member Author

kassens commented Dec 22, 2015

@gschammah Yes, we're planning on publishing 0.7.0 on Wednesday.

@hannesj
Copy link

hannesj commented Jan 7, 2016

@kassens any update on this?

@rosskevin
Copy link
Contributor

rosskevin commented Jun 27, 2017

This is currently an issue (on relay master) with babel-runtime falling behind on versions, everything else is 6.25.0 while babel-runtime is 6.23.0.

babel/babel#5873

I've asked for a maintenance release, because the incompatibility lies in the babel packages themselves.

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

6 participants