-
Notifications
You must be signed in to change notification settings - Fork 12
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
npm test fails with SyntaxError: Unexpected token * #27
Comments
npm test
fails with SyntaxError: Unexpected token *
Phantomjs 2 doesn't support ES6. Use ES5 or compile with babel or the like. |
any suggestions on how to do so? thanks! |
@nathanboktae: after some more consideration, it is unclear to me what i am doing wrong. i expected to be able to pull the latest from master and run the tests with |
This is not the place to explain how JavaScript and browsers work so I'll be brief. PhantomJS 2 is a headless browser based on QT5 WebKit and JavaScriptCore. JavaScript (officially called ECMAScript) is evolving. You are using generator functions, a feature of ES6. PhantomJS 2 only supports ES5 - but will in 2.5 according to ariya/phantomjs#14506 |
I'm on Mac OS Sierra 10.12.1, so I need to use phantomjs 2.
The text was updated successfully, but these errors were encountered: