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

System.register update expression consistency #3650

Merged

Conversation

guybedford
Copy link
Contributor

This change ensures that update expressions like x++ and x--, where x is an exported binding, get replaced with the expression _export('x', x - 1), x-- and _export('x, x + 1), x++ respectively.

The reason for this is that we need the expression to provide the same outward value, while reporting the correct value for the export binding to the setter functions.

This then allows standard exported counter scenarios to work correctly.

@guybedford guybedford force-pushed the system-register-export-post-assignment branch from 4a8d6f0 to bd46f8d Compare August 11, 2016 23:35
@codecov-io
Copy link

Current coverage is 88.13% (diff: 100%)

No coverage report found for master at 033681a.

Powered by Codecov. Last update 033681a...bd46f8d

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

hzoo commented Aug 20, 2016

Cool, wondering if this only an issue for systemjs?

@hzoo hzoo merged commit de2791a into babel:master Aug 20, 2016
@guybedford
Copy link
Contributor Author

Yes this is just for SystemJS output. Thanks for merging!

@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

3 participants