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 mangling identifier in try-catch when there's same-named label #185

Closed
kangax opened this issue Oct 13, 2016 · 0 comments
Closed

Error mangling identifier in try-catch when there's same-named label #185

kangax opened this issue Oct 13, 2016 · 0 comments
Labels
bug Confirmed bug
Milestone

Comments

@kangax
Copy link
Member

kangax commented Oct 13, 2016

This:

function f(a) {
  try {
    a: {
      console.log(a);
    }
  } catch ($a) { }
}

becomes:

"use strict";function f(b){try{a:console.log(a)}catch(c){}}

Notice console.log(a) instead of console.log(b).

@kangax kangax added the bug Confirmed bug label Oct 13, 2016
@kangax kangax added this to the 0.0.7 milestone Oct 23, 2016
@kangax kangax closed this as completed in 6f9f606 Oct 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bug
Projects
None yet
Development

No branches or pull requests

1 participant