Skip to content

fix(zone.js): avoid type error on custom object rejection with reject…#68896

Open
atscott wants to merge 1 commit into
angular:mainfrom
atscott:promisereject
Open

fix(zone.js): avoid type error on custom object rejection with reject…#68896
atscott wants to merge 1 commit into
angular:mainfrom
atscott:promisereject

Conversation

@atscott
Copy link
Copy Markdown
Contributor

@atscott atscott commented May 22, 2026

…ion property

Ensure that when a custom object with a 'rejection' property is thrown as a raw promise rejection, the unhandled promise rejection error logger does not crash with a TypeError while trying to access undefined zone properties.

Also wrap microtask queue draining and task frame counter updates with defensive try-finally blocks to guarantee internal scheduler states are properly reset under any potential call stack exception unwinding scenarios.

…ion property

Ensure that when a custom object with a 'rejection' property is thrown as a raw promise rejection, the unhandled promise rejection error logger does not crash with a TypeError while trying to access undefined zone properties.

Also wrap microtask queue draining and task frame counter updates with defensive try-finally blocks to guarantee internal scheduler states are properly reset under any potential call stack exception unwinding scenarios.
@atscott atscott requested a review from dgp1130 May 22, 2026 23:56
@angular-robot angular-robot Bot added the area: zones Issues related to zone.js label May 22, 2026
@ngbot ngbot Bot added this to the Backlog milestone May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: zones Issues related to zone.js

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant