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

expr_simplifier does not simplify computed MemberExprs with non-literal properties #8747

Open
levi-nz opened this issue Mar 14, 2024 · 0 comments · May be fixed by #8750
Open

expr_simplifier does not simplify computed MemberExprs with non-literal properties #8747

levi-nz opened this issue Mar 14, 2024 · 0 comments · May be fixed by #8750
Milestone

Comments

@levi-nz
Copy link
Contributor

levi-nz commented Mar 14, 2024

Describe the feature

expr_simplifier does not simplify computed MemberExprs that have an expression as the index.

These two examples are not simplified, but both resolve to undefined:

[][[]] // undefined
[][0] // undefined

Both of these should be simplified to undefined

Babel plugin or link to the feature description

No response

Additional context

No response

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

Successfully merging a pull request may close this issue.

2 participants