We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This code:
try x = 3 catch x throw x
compiles to this:
try { x = 3; } catch (x) { throw x; }
... In which x is never declared locally.
The text was updated successfully, but these errors were encountered:
Looks like a bug to me. Simpler examples:
$ coffee -bpe 'try x = 3 catch x' try { x = 3; } catch (x) { } $ coffee -bpe 'try x = 3 catch y' var x; try { x = 3; } catch (y) { }
Sorry, something went wrong.
Issue #1595, reusing a variable in a catch leads to missing declaration.
9a026e5
This patch should do the trick -- thanks for the bug report, and the great test case.
Adding a test for #1595
8c31f2e
No branches or pull requests
This code:
compiles to this:
... In which x is never declared locally.
The text was updated successfully, but these errors were encountered: