Skip to content
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

Allow an alternative Esprima module to be used for parsing #99

Closed
benjamn opened this issue Mar 31, 2014 · 0 comments
Closed

Allow an alternative Esprima module to be used for parsing #99

benjamn opened this issue Mar 31, 2014 · 0 comments

Comments

@benjamn
Copy link
Collaborator

benjamn commented Mar 31, 2014

In other words, support the following option:

require("regenerator")(source, {
  esprima: require("custom-esprima")
});

Right now Regenerator always use the harmony branch, so any custom Esprima implementation should probably be based on that branch (or at least have the same support for generator functions and yield expressions).

This will allow async functions and await expressions to be implemented as a separate package that depends on this Esprima branch: https://github.com/ariya/esprima/pull/234

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant