mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
9c1ec6c93e
When Zone patches Promise, it uses ZoneAwarePromise. The new Promise.try API was undefined on ZoneAwarePromise, making it unavailable when zone was present. This change gracefully passes through Promise.try to the native Promise implementation, if available, without patching it to execute in the right zone (our stance is not to add new patches but avoid destructively making new APIs unavailable).
Fixes #67057
(cherry picked from commit fc557f0276)