-
Notifications
You must be signed in to change notification settings - Fork 334
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
generate() error has no message #250
Comments
Are you sure? The only objects thrown by escodegen are instances of Error, which should have a |
Yes, you are right. The is a message. My mistake, I tried to |
Be careful, esvalid hasn't been updated with support for any of the nodes introduced for ES6 support. |
woops. Are you serious? Not even |
Let uses the existing variable declaration node, so it should be fine. I would love to get a PR that adds ES6 support if someone wants to take it. |
We have some volunteers for adding ES6 support, if I understand the following issue correctly: #221 |
No, I think #221 expresses a desire to change the implementation of escodegen to make use of ES6 features, not add support for generating programs from ES6 AST nodes. |
Does this sound relevant? estools/esvalid#7 |
Yes. |
While calling
escodegen.generate()
it throws an error.try - catch
is an empty object. How can I get a little more diagnostics or error messages?The text was updated successfully, but these errors were encountered: