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

Error on valid break statement #48

Open
lachrist opened this issue Feb 11, 2015 · 1 comment
Open

Error on valid break statement #48

lachrist opened this issue Feb 11, 2015 · 1 comment
Labels

Comments

@lachrist
Copy link

Hi, first thank for your handy module!!
I get a error on the code: a: try { break a; } finally { } which is legal I believe.
Below is a minimal bug reproduction:

var Esprima = require('esprima');
var Esvalid = require('esvalid');

var code = 'a: try { break a; } finally { }';
var ast = Esprima.parse(code);
var errors = Esvalid.errors(ast);
if (errors.length > 0) { throw errors[0]; }
@michaelficarra
Copy link
Member

Confirmed.

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

No branches or pull requests

2 participants