-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit eb99d8e
fix: Avoid handling promise rejections twice in stability helper (#3657)
`PendingTasks.run` reports rejections of the promise to the
`ErrorHandler`. This function already returns a promise that is meant to
be handled in the developer's application. If there _is_ handling there,
the rejection is handled both in the `PendingTasks.run` and in the
developer callsite.
This change updates the code to use `PendingTasks.add` instead, which
has no built in error handling mechanisms.
fixes angular/angular#61932 1 parent c1c6af9 commit eb99d8e
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
170 | 170 |
| |
171 | 171 |
| |
172 | 172 |
| |
173 | - | ||
173 | + | ||
174 | 174 |
| |
175 | 175 |
| |
176 | 176 |
| |
177 | 177 |
| |
178 | - | ||
178 | + | ||
179 | 179 |
| |
180 | 180 |
| |
181 | 181 |
| |
|
0 commit comments