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

Babel should transform delete obj?.#x.a #11657

Closed
1 task done
JLHwung opened this issue Jun 1, 2020 · 1 comment · Fixed by #11669
Closed
1 task done

Babel should transform delete obj?.#x.a #11657

JLHwung opened this issue Jun 1, 2020 · 1 comment · Fixed by #11669
Labels
i: bug outdated A closed issue/PR that is archived due to age. Recommended to make a new issue Spec: Class Fields Spec: Optional Chaining

Comments

@JLHwung
Copy link
Contributor

JLHwung commented Jun 1, 2020

Bug Report

  • I would like to work on a fix!

Current behavior
A clear and concise description of the behavior.

Input Code

delete obj?.#x.a

Expected behavior
A clear and concise description of what you expected to happen (or code).
It should be transformed something like

obj == null ? true : (delete _privateGet(obj, Foo, x).a)

Note that true should be returned instead of undefined when obj is nullish.

Environment
REPL

Additional Context
Follow-up to https://github.com/babel/babel/pull/11248/files#r430537770

@babel-bot
Copy link
Collaborator

Hey @JLHwung! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly.

If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite."

@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Sep 23, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
i: bug outdated A closed issue/PR that is archived due to age. Recommended to make a new issue Spec: Class Fields Spec: Optional Chaining
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants