-
Notifications
You must be signed in to change notification settings - Fork 43
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
Comments
Using |
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.`
Added to README courtesy of @nimerix . Thanks for the report. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?The text was updated successfully, but these errors were encountered: