-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Problem with Chrome Debugger when using spread operator #1280
Comments
cc @amasad - missing transform? |
The JavaScript wouldn't be going through any transforms because it's just being executed natively. |
The JS is still transformed to generate the bundle which is loaded by chrome. |
Still confused. Should it work ? |
It shouldn't work and there's probably no real way to make it work. On Wednesday, 20 May 2015, Roger Gilliar notifications@github.com wrote:
Sebastian McKenzie |
@sebmck I believe it should work. RN deploys ES5... in theory with ES3 support RN could run in IE8 if we wanted. Something is going wrong with the transform that's causing Chrome to receive a maltransformed spread operator. @RogerGL can you view the JS that is running in Chrome and see what the code around your Promise.all call looks like? |
This is the complete method:
|
@RogerGL, sorry - I meant the code that Chrome's web inspector shows under the Sources tab. Things like the arrow functions should be transformed into normal functions. |
Chrome displays the code given in the previous posting. This is the code from the index.ios.bundle file:
|
Hopefully this will be fixed when we switch to babel soon. |
@ide Oh right. Sorry for speaking out of turn. I thought he was referring to the dev tools console. |
Yeah, I hate this discrepancy. JavaScript Core has rest param support whereas chrome doesn't. Pushing the switch to Babel shortly, and it should include this transform. |
Good to know that babel is coming |
Babel landed in master: tadeuzagallo@56d6ee3 |
The following code works on the Simulator:
return Promise.all([fileInfo, ...(m.intoArray(setValuePromises))]);
but gives a Syntax error when I try to debug with Chrome.
The text was updated successfully, but these errors were encountered: