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

Prevent labels from being renamed due to let/const transpilation. #236

Merged
merged 1 commit into from Mar 26, 2020

Commits on Dec 18, 2019

  1. Prevent labels from being renamed due to let/const transpilation.

    When a label has the same name as a variable that has been renamed
    due to let/const transpilation, the label may also be renamed.
    This should not happen, since labels do not follow the same scope
    rules as variables.
    This commit prevents labeled continues and label statements from
    being renamed, fixing the issue.
    Labeled break were not buggy, as breaks do not initialise their
    children anyway, but this commit also adds breaks to the list
    of renames to skip, for consistency.
    luisreis-jscr committed Dec 18, 2019
    Configuration menu
    Copy the full SHA
    04209a4 View commit details
    Browse the repository at this point in the history