Skip to content

path.evaluate wrongly retruns with confidence for "block-scoped" var's #8411

@mjesun

Description

@mjesun

Bug Report

Current Behavior
path.evaluate is broken for var scopes.

Input Code
http://astexplorer.net/#/gist/583ea7d0c0501af69a1b224526f7f864

Expected behavior/code
Cannot return with confidence that doesExist is true.

Babel Configuration (.babelrc, package.json, cli command)
N/A

Environment
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions