This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(promise): support more aggressive optimization. (#431)
ZoneAwarePromise does not technically implement or inherit the static side of Promise, so aggressive optimizers may drop static methods such as `all`, `race`, `reject`, and `resolve`. This change explicitly exports them into quoted properties, which is harmless for normal use and protects users of more aggressive optimizers, such as Closure Compiler in typed mode.
- Loading branch information