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 thrown in catch block causes issue in Interpreter.prototype.executeException #82

Closed
benjie opened this issue Oct 8, 2016 · 1 comment

Comments

@benjie
Copy link

benjie commented Oct 8, 2016

Sorry about this, whilst debugging an issue I came across this and thought you'd want to know

To reproduce:

try {
  throw new Error("Foo");
} catch(e) {
  throw e;
}

screenshot 2016-10-08 15 05 11

Looks like you just need a state && in that if clause?

Also } while (state || state.node.type == 'Program'); looks wrong - perhaps you meant &&?

@NeilFraser
Copy link
Owner

Yup, fixed in PR #80. Sorry about that.

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

No branches or pull requests

2 participants