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(core): avoid Closure Compiler error in restoreView #45445

Closed
wants to merge 1 commit into from

Conversation

crisbeto
Copy link
Member

Closure Compiler in advanced optimization mode may end up inlining the ɵɵrestoreView into the event listener which can lead to a runtime null pointer exception after the changes in #43075.

These changes add an annotation to prevent function inlining of the specific instruction.

@pullapprove pullapprove bot requested a review from alxhub March 25, 2022 21:59
@AndrewKushnir AndrewKushnir removed the request for review from alxhub March 25, 2022 22:05
Closure Compiler in advanced optimization mode may end up inlining the `ɵɵrestoreView` into the event listener which can lead to a runtime null pointer exception after the changes in angular#43075.

These changes add an annotation to prevent function inlining of the specific instruction.
@crisbeto crisbeto force-pushed the restore-view-inlining branch from 19b6015 to 93f7f43 Compare March 25, 2022 22:09
@crisbeto
Copy link
Member Author

Pushed an extra change with a TODO for myself.

@crisbeto crisbeto added area: core Issues related to the framework runtime target: minor This PR is targeted for the next minor release labels Mar 25, 2022
@ngbot ngbot bot modified the milestone: Backlog Mar 25, 2022
@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker action: presubmit The PR is in need of a google3 presubmit labels Mar 25, 2022
@dylhunn
Copy link
Contributor

dylhunn commented Mar 25, 2022

@dylhunn
Copy link
Contributor

dylhunn commented Mar 26, 2022

Presubmit looks good, except for one flake.

@dylhunn dylhunn removed the action: presubmit The PR is in need of a google3 presubmit label Mar 26, 2022
@dylhunn
Copy link
Contributor

dylhunn commented Mar 26, 2022

This PR was merged into the repository by commit d36fa11.

@dylhunn dylhunn closed this in d36fa11 Mar 26, 2022
PiyushAgrawal1243 pushed a commit to PiyushAgrawal1243/angular that referenced this pull request Mar 30, 2022
Closure Compiler in advanced optimization mode may end up inlining the `ɵɵrestoreView` into the event listener which can lead to a runtime null pointer exception after the changes in angular#43075.

These changes add an annotation to prevent function inlining of the specific instruction.

PR Close angular#45445
josmar-crwdstffng pushed a commit to josmar-crwdstffng/angular that referenced this pull request Apr 8, 2022
Closure Compiler in advanced optimization mode may end up inlining the `ɵɵrestoreView` into the event listener which can lead to a runtime null pointer exception after the changes in angular#43075.

These changes add an annotation to prevent function inlining of the specific instruction.

PR Close angular#45445
@angular-automatic-lock-bot
Copy link

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 Apr 26, 2022
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: core Issues related to the framework runtime target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants