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

how to differentiate two variables with same name? #967

Closed
scil opened this issue Jul 24, 2020 · 1 comment
Closed

how to differentiate two variables with same name? #967

scil opened this issue Jul 24, 2020 · 1 comment

Comments

@scil
Copy link

scil commented Jul 24, 2020

there are two variables named n. how could I differentiate them?

function (e, t, n) {  // n

    function b(e, t, n) {  // n
        return n
    }

  }

@marijnh
Copy link
Member

marijnh commented Jul 26, 2020

You'll have to resolve the scopes yourself, or use some library that does that. Acorn doesn't have that functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants