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

Broken **= operator when accessing properties with a string template (T7502) #4403

Closed
babel-bot opened this issue Jul 21, 2016 · 1 comment
Closed
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue

Comments

@babel-bot
Copy link
Collaborator

Issue originally made by @nunocastromartins

Bug information

  • Babel version: 6.9.1
  • Node version: Website's "Try it out"
  • npm version: Website's "Try it out"

Input code

a[`${b++}`] **= 1

Description

Input:

a[`${b++}`] **= 1;

produces:

var _a = a;
_a["" + b++] = Math.pow(_a["" + b++], 1);

instead of:

var _a = a;
var _ref = "" + b++;
_a[_ref] = Math.pow(_a[_ref], 1);

Also, is there any reason behind the var _a = a;?

@motiz88
Copy link
Contributor

motiz88 commented Oct 5, 2016

Closed via #4672.

@motiz88 motiz88 closed this as completed Oct 5, 2016
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label May 6, 2018
@lock lock bot locked as resolved and limited conversation to collaborators May 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue
Projects
None yet
Development

No branches or pull requests

2 participants