-
Notifications
You must be signed in to change notification settings - Fork 16
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
Babel's parser (babylon) doesn't distinguish invalid code from incomplete code #14
Comments
Babel's parser doesn't detect incomplete code:
|
is_complete_reply.status: 'invalid'
What exactly are you asking o.p.? |
@Announcement The issue is described in the comment linked above (and here for your convenience). By default, > var babylon = require("babylon");
> babylon.parse("{")
SyntaxError: Unexpected token (1:1)
> babylon.parse("}")
SyntaxError: Unexpected token (1:0) Other parsers, e.g. esprima, throw different type of errors: > var exprima = require("exprima");
> esprima.parse("{")
Error: Line 1: Unexpected end of input
> esprima.parse("}")
Error: Line 1: Unexpected token } Anyway, I'm going to remove the label |
Hi,Sir.I can not run it.The kernel dead. Error: Cannot find module '../build/Release/zmq.node' Thanks |
@youyiqin I'm guessing you've updated Node.js recently. If you did, then you need to reinstall IJavascript. If reinstalling IJavascript doesn't fix the problem, please, open a new issue and include the commands you are running to install IJavascript. |
@n-riesco Thanks!! Yes,I have updated nodejs and npm.And I also reinstalled ijavascript.It works well unless new create a jp-babel work page. |
Invalid code should return
is_complete_reply.status: 'invalid'
.Moved from #13 (comment) .
The text was updated successfully, but these errors were encountered: