-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Unexpected token error #7
Comments
Not sure how this is related to this module, but you can't invoke a function declaration, you need to wrap it to create an expression, e.g. |
@yask123 Fixed in sindresorhus/default-shell@d3e4413. Just reinstall this module. |
Ah, the issue was in another module 👍 I wonder how that slipped through CI. |
@silverwind Somehow that syntax worked fine in Node.js 4. |
@sindresorhus yeah, looks like a v8 bug. Must've been fixed in 6.0.0 or earlier. |
That was quick! Thanks! 👍 |
I got unexpected token error in fix-path code.
This is the content of fix-path:
When I removed last
()
, it didn't give invalid syntax error.What could be wrong?
I installed nodejs via brew
$ node --version v5.10.1
The text was updated successfully, but these errors were encountered: