mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
962b59b14e
When using `fakeAsync`, if errors happen inside the Angular zone, they are also handled by the fakeAsync machinery. Rethrowing errors from the `NgZone.onError` subscription is not appropriate in this case because it results in the error being thrown twice. https://github.com/angular/angular/blob/db2f2d99c82aae52d8a0ae46616c6411d070b35e/packages/zone.js/lib/zone-spec/fake-async-test.ts#L783-L784 https://github.com/angular/angular/blob/db2f2d99c82aae52d8a0ae46616c6411d070b35e/packages/zone.js/lib/zone-spec/fake-async-test.ts#L473-L478 PR Close #60104