Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

fix(promise): support more aggressive optimization.#431

Merged
mhevery merged 1 commit intoangular:masterfrom
mprobst:master
Sep 9, 2016
Merged

fix(promise): support more aggressive optimization.#431
mhevery merged 1 commit intoangular:masterfrom
mprobst:master

Conversation

@mprobst
Copy link
Copy Markdown
Contributor

@mprobst mprobst commented Sep 9, 2016

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.

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.
@mhevery mhevery merged commit 26fc3da into angular:master Sep 9, 2016
@vicb
Copy link
Copy Markdown
Contributor

vicb commented Sep 9, 2016

@mhevery @mprobst what about failing CI ?

Your test run exceeded 120 minutes. 
One possible solution is to split up your test run.

@mprobst
Copy link
Copy Markdown
Contributor Author

mprobst commented Sep 9, 2016 via email

@vicb
Copy link
Copy Markdown
Contributor

vicb commented Sep 9, 2016

yes it was, master is green. Sorry for the noise.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants