Skip to content

Conversation

@mehwar
Copy link

@mehwar mehwar commented Dec 1, 2015

The additional parentheses eliminate SyntaxErrors similar to Appendix A that surface when running the default React Native iOS app with Node v5.1.

Appendix A
iOS simulator SyntaxError screenshot

The additional parentheses eliminate SyntaxErrors similar to Appendix A that surface when running the default React Native iOS app with Node v5.1.

Appendix A
![iOS simulator SyntaxError screenshot](http://i.snag.gy/po7Fi.jpg "SyntaxError")
@sophiebits
Copy link

Your added parens change the meaning of the code. I am fairly sure that the code is valid JS as-is – perhaps you can look at the transformed source to see what happened to it?

@mehwar
Copy link
Author

mehwar commented Dec 1, 2015

Good catch... I'll do some more digging on what's actually going on.

Aside: I tried changing the parens in a way to keep code meaning constant (put it around on the other side to wrap the multiplication operator) and I seem to run into the same SyntaxError as noted in Appendix A :/.

@sophiebits
Copy link

What is Appendix A, sorry?

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.

3 participants