-
Notifications
You must be signed in to change notification settings - Fork 784
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
syntax error in esprima.js? #1451
Comments
This is the content of js/test_browserify.js. Only 'SuperQuadric' is an AMD module : "use strict"; var qunit = require('qunitjs'); console.log("qunit: ", qunit); |
Can you find out the content of this Line 47? It could be also the problem with deamdify. |
I now think this line 47 pointer points to my file './cons/designs/SuperQuadric'. At this line, I define an 'arrow' function, which is part of ES6. I only need my project to work in Firefox, so that is OK. I don't need Babel or similar. |
deamdify needs to use Esprima that supports arrow function. Can you check the Esprima version? Open |
I found this:
|
I 'transferred' this issue to the deAMDify github account: |
How come I get this error:
jon@Lemur:~/frontend$ browserify -t deamdify js/test_browserify.js -o js/test_bundle.js
/home/jon/frontend/node_modules/esprima/esprima.js:3734
throw e;
^
Error: Line 47: Unexpected token =>
at throwError (/home/jon/frontend/node_modules/esprima/esprima.js:1846:21)
at throwUnexpected (/home/jon/frontend/node_modules/esprima/esprima.js:1904:9)
at consumeSemicolon (/home/jon/frontend/node_modules/esprima/esprima.js:1983:13)
at parseStatement (/home/jon/frontend/node_modules/esprima/esprima.js:3281:9)
at parseSourceElement (/home/jon/frontend/node_modules/esprima/esprima.js:3505:20)
at parseFunctionSourceElements (/home/jon/frontend/node_modules/esprima/esprima.js:3334:29)
at parseFunctionExpression (/home/jon/frontend/node_modules/esprima/esprima.js:3477:16)
at parsePrimaryExpression (/home/jon/frontend/node_modules/esprima/esprima.js:2194:24)
at parseLeftHandSideExpressionAllowCall (/home/jon/frontend/node_modules/esprima/esprima.js:2293:61)
at parsePostfixExpression (/home/jon/frontend/node_modules/esprima/esprima.js:2341:16)
The text was updated successfully, but these errors were encountered: