angular/packages/core/test/zone
Andrew Scott 840c375255 fix(core): do not save point-in-time setTimeout and rAF references (#55124)
Grabbing and saving the references to global `setTimeout` and `rAF`
implementations at a certain point in time can be problematic, espcially
in tests. Tests might call something like `jasmine.clock().install();`
and `jasmine.clock().uninstall();`. If the install happens before we
grab the implementation and then the uninstall happens after, our
scheduling function will be broken because it would have saved a reference to
the jasmine `setTimeout` implementation, which would have since been
cleaned up and will throw  an error when attempting to access `delayedFunctionScheduler`.

There are other scenarios that may apply, not even just for tests, when
patches are applied and removed to the globals.

PR Close #55124
2024-04-01 11:00:11 -07:00
..
async-tagging-console.spec.ts refactor(zone.js): remove zone-async-tagging from zone.js (#47416) 2022-09-23 14:44:38 -07:00
ng_zone_spec.ts fix(core): do not save point-in-time setTimeout and rAF references (#55124) 2024-04-01 11:00:11 -07:00