angular/packages/zone.js/lib
JiaLiPassion aebf165359 fix(zone.js): should ignore multiple resolve call (#45283)
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
2022-03-25 17:31:03 -07:00
..
browser fix(zone.js): swallow the error when the element callback is not patchable (#45400) 2022-03-25 16:31:09 -07:00
closure fix(zone.js): fix typo in zone_externs (#40348) 2021-01-08 09:47:46 -08:00
common fix(zone.js): should ignore multiple resolve call (#45283) 2022-03-25 17:31:03 -07:00
extra feat(zone.js): update electron patch to support electron/remote 14 (#45073) 2022-02-23 08:57:12 -08:00
jasmine fix(zone.js): check if process is defined when patching the GlobalErrors.install (#45392) 2022-03-24 10:52:34 -07:00
jest refactor(zone.js): rename several internal apis in fake async zone spec (#39127) 2020-10-13 15:56:22 -07:00
mix build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
mocha fix(zone.js): patch global instead of Mocha object (#45047) 2022-02-16 13:51:51 -08:00
node fix(zone.js): should continue to executue listeners when throw error (#41562) 2021-04-21 15:54:08 -07:00
rxjs fix(zone.js): zone patch rxjs should return null _unsubscribe correctly. (#37091) 2020-07-27 12:10:27 -07:00
testing refactor(core): remove unused fakeAsyncFallback and asyncFallback (#37879) 2020-11-20 08:34:59 -08:00
zone-spec fix(zone.js): in TaskTrackingZoneSpec track a periodic task until it is cancelled (#45391) 2022-03-24 10:53:36 -07:00
BUILD.bazel build: update bazel (#45431) 2022-03-25 12:18:33 -07:00
zone-global.d.ts fix(zone.js): remove global declaration (#37861) 2020-10-23 15:19:49 -07:00
zone.api.extensions.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
zone.configurations.api.ts feat(zone.js): monkey patches queueMicrotask() (#38904) 2020-11-05 11:23:33 -08:00
zone.ts build: enable useUnknownInCatchVariables (#44679) 2022-02-01 18:17:29 +00:00