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

Fix UpdateExpression handling in es2015-modules-commonjs, resolve #4462 #4511

Merged
merged 1 commit into from Sep 25, 2016

Conversation

motiz88
Copy link
Contributor

@motiz88 motiz88 commented Sep 13, 2016

Q A
Bug fix? yes
Breaking change? no
New feature? no
Deprecations? no
Spec compliancy? no
Tests added/pass? yes
Fixed tickets #4462
License MIT

The requeueInParent call is apparently redundant (all tests pass without it). Also, whatever it was meant to do, I don't believe it has ever worked - since replaceWithMultiple returns undefined and has done so since basically forever (so the for would always have caused an error).

Possibly some other requeue calls in this file can be omitted with no adverse effects, but I kept changes to a minimum.

@codecov-io
Copy link

codecov-io commented Sep 13, 2016

Current coverage is 88.44% (diff: 100%)

No coverage report found for master at de975b9.

Powered by Codecov. Last update de975b9...43e0cfb

@hzoo
Copy link
Member

hzoo commented Sep 13, 2016

cc @loganfsmyth

@hzoo hzoo added the PR: Bug Fix 🐛 A type of pull request used for our changelog categories label Sep 13, 2016
@hzoo
Copy link
Member

hzoo commented Sep 14, 2016

original PR was done in #3368

@danez
Copy link
Member

danez commented Sep 14, 2016

Also saw this and was wondering. Send to not do anything right now. But maybe it was meant that the function should actually return something.

@loganfsmyth
Copy link
Member

Looks good. Obviously that requeueInParent hasn't been important up to now, if it's causing issues someone can always report it, but given how long this bug has been around, I just don't think people are using update expressions on exports much anways :P

@loganfsmyth loganfsmyth merged commit 819cde9 into babel:master Sep 25, 2016
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 7, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 7, 2019
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 PR: Bug Fix 🐛 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants