Skip to content

Labels shadow bindings (T6957) #3978

@babel-bot

Description

@babel-bot

Issue originally made by @amasad

Bug information

  • Babel version: 6.4.2
  • Node version: 5
  • npm version: 2

Input code

function foo() {
        var meh;
        meh: for (;;) {
          break meh;
        }
        return meh;
      }

Description

If you ask scope.getBinding('meh') in the input code you would get the label binding. I think labels should have their own namespace

Metadata

Metadata

Assignees

No one assigned

    Labels

    outdatedA closed issue/PR that is archived due to age. Recommended to make a new issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions