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(zone.js): do not silence uncaught promise rejections when the finally is called #46462

Closed
wants to merge 1 commit into from

Conversation

arturovt
Copy link
Contributor

PR Checklist

PR Type

  • Bugfix

…nally` is called

The native promise implementation logs unhandled promise rejections after `onFinally`
has been called. We may rely on the `scheduledByFinally` argument, which is `false` by
default, to avoid creating a breaking change; this will also allow us to reduce the number of
changes. The `finally` function should not silence unhandled promise rejections, because
they're not silenced in any implementation. If the `scheduleResolveOrReject` is called within
the `finally` we won't clear unhandled rejections. We'll keep the same behaviour if the
`scheduleResolveOrReject` is called within the `then`.

PR Close angular#43206
@pullapprove pullapprove bot requested a review from JiaLiPassion June 22, 2022 23:12
@arturovt
Copy link
Contributor Author

@AndrewKushnir re-created as asked here: #45449 (comment).

@AndrewKushnir AndrewKushnir added target: minor This PR is targeted for the next minor release action: global presubmit The PR is in need of a google3 global presubmit area: zones labels Jun 22, 2022
@ngbot ngbot bot added this to the Backlog milestone Jun 22, 2022
@AndrewKushnir AndrewKushnir self-assigned this Jun 22, 2022
@AndrewKushnir
Copy link
Contributor

@arturovt thanks for re-creating the PR 👍 I will need to do some cleanup work in Google's codebase and let you know if I find any patterns that might need extra attention. Thank you.

@AndrewKushnir
Copy link
Contributor

Global Presubmit.

@AndrewKushnir
Copy link
Contributor

@arturovt unfortunately, this change caused a number of failures in Google's codebase. We'd need to discuss the next steps with the team, but the current state looks similar to #45447, see #45447 (comment).

@arturovt
Copy link
Contributor Author

Closing since this breaks some tests internally, which would require some effort to investigate and land in g3.

@arturovt arturovt closed this May 20, 2024
@arturovt arturovt deleted the fix/43206 branch May 20, 2024 09:45
@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 Jun 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: global presubmit The PR is in need of a google3 global presubmit area: zones state: blocked target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants