mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Close #44913 The following case is not handled correctly by `zone.js`. ``` const delayedPromise = new Promise((resolve) => { setTimeout(resolve, 1, 'timeout'); }); new Promise((resolve) => { resolve(delayedPromise); resolve('second call'); }).then(console.log); ``` It should output `timeout`, since the promise is resolved by the 1st resolve, the `second call` should be ignored. So this is a bug that the original implementation not ensure the `resolve` is only called once. PR Close #45283 |
||
|---|---|---|
| .. | ||
| Error.spec.ts | ||
| fetch.spec.ts | ||
| microtasks.spec.ts | ||
| promise-disable-wrap-uncaught-promise-rejection.spec.ts | ||
| Promise.spec.ts | ||
| setInterval.spec.ts | ||
| setTimeout.spec.ts | ||
| task.spec.ts | ||
| toString.spec.ts | ||
| util.spec.ts | ||
| zone.spec.ts | ||