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

SyntaxError: 'return' outside of function #15

Closed
matthiaslau opened this issue Sep 6, 2016 · 2 comments
Closed

SyntaxError: 'return' outside of function #15

matthiaslau opened this issue Sep 6, 2016 · 2 comments

Comments

@matthiaslau
Copy link

The node parser doesn´t allow 'return' outside of a function (see nodejs/node-v0.x-archive#6254) and throws SyntaxError: 'return' outside of function.

When I get this right it is necessary to have a return at the beginning of the main.js. Is there a solution for this?

@matthiaslau
Copy link
Author

matthiaslau commented Sep 6, 2016

Using app.quit()' instead of return is also working, perhaps it is helpful to add this to the README :-D

nimerix added a commit to nimerix/electron-squirrel-startup that referenced this issue Nov 24, 2016
The usage example in the README results in a syntax error for Babel/ES6 users, as reported by @matthiaslau in mongodb-js#15:

`SyntaxError: 'return' outside of function.`
durran pushed a commit that referenced this issue Nov 25, 2016
The usage example in the README results in a syntax error for Babel/ES6 users, as reported by @matthiaslau in #15:

`SyntaxError: 'return' outside of function.`
@durran
Copy link
Member

durran commented Nov 25, 2016

Added to README courtesy of @nimerix . Thanks for the report.

@durran durran closed this as completed Nov 25, 2016
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

No branches or pull requests

2 participants