Skip to content

refactor(upgrade): avoid mutable exports. - #34232

Closed
mprobst wants to merge 1 commit into
angular:masterfrom
mprobst:testing-exp
Closed

mprobst wants to merge 1 commit into
angular:masterfrom
mprobst:testing-exp

Conversation

@mprobst

@mprobst mprobst commented Dec 4, 2019

Copy link
Copy Markdown
Contributor

Previously, create_angular_testing_module would export a mutable let
binding. The binding is already exporting using an accessor function
though, so the export on the let variable seems like an accidental
oversight.

This is functionally equivalent, but makes it easier for module
optimizers such as Closure Compiler to track down side effects and prune
modules.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

  • Refactoring (no functional changes, no api changes)

Previously, create_angular_testing_module would export a mutable `let`
binding. The binding is already exporting using an accessor function
though, so the export on the let variable seems like an accidental
oversight.

This is functionally equivalent, but makes it easier for module
optimizers such as Closure Compiler to track down side effects and prune
modules.
@mprobst
mprobst requested a review from a team December 4, 2019 16:01
@mprobst

mprobst commented Dec 4, 2019

Copy link
Copy Markdown
Contributor Author

presubmit

@mprobst mprobst added target: major This PR is targeted for the next major release action: merge The PR is ready for merge by the caretaker area: upgrade Issues related to AngularJS → Angular upgrade APIs labels Dec 5, 2019
@ngbot ngbot Bot added this to the needsTriage milestone Dec 5, 2019
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Jan 5, 2020
AndrewKushnir pushed a commit to AndrewKushnir/angular that referenced this pull request Jan 24, 2020
Previously, create_angular_testing_module would export a mutable `let`
binding. The binding is already exporting using an accessor function
though, so the export on the let variable seems like an accidental
oversight.

This is functionally equivalent, but makes it easier for module
optimizers such as Closure Compiler to track down side effects and prune
modules.

PR Close angular#34232
AndrewKushnir pushed a commit that referenced this pull request Jan 24, 2020
Previously, create_angular_testing_module would export a mutable `let`
binding. The binding is already exporting using an accessor function
though, so the export on the let variable seems like an accidental
oversight.

This is functionally equivalent, but makes it easier for module
optimizers such as Closure Compiler to track down side effects and prune
modules.

PR Close #34232

PR Close #34960
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: upgrade Issues related to AngularJS → Angular upgrade APIs cla: yes target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants