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

Closed
levi-nz opened this issue Mar 14, 2024 · 1 comment · Fixed by #8750
Closed

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

levi-nz opened this issue Mar 14, 2024 · 1 comment · 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

@swc-bot
Copy link
Collaborator

swc-bot commented Aug 3, 2024

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@swc-project swc-project locked as resolved and limited conversation to collaborators Aug 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging a pull request may close this issue.

3 participants