fix(promise): Update ZoneAwarePromise to better match Promise#940
fix(promise): Update ZoneAwarePromise to better match Promise#940sandersn wants to merge 1 commit into
Conversation
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
1 similar comment
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
|
I signed the CLA. |
|
CLAs look good, thanks! |
1 similar comment
|
CLAs look good, thanks! |
|
NativeScript maintains a fork of zone.js because they have different platform patch requirements. In order to remove the fork, they need to add a The build breaks when including Please accept it 🙏 |
justindujardin
left a comment
There was a problem hiding this comment.
This breaks the CI build because the format is incorrect. Helpfully it tells you how to fix it:
[23:17:03] WARNING: Files are not properly formatted. Please run
[23:17:03] node_modules/clang-format/index.js -i -style="file" /home/travis/build/angular/zone.js/lib/common/promise.ts
https://travis-ci.org/angular/zone.js/builds/292884747#L2104
|
Now the CI build fails like this: I have no idea what happened here. |
justindujardin
left a comment
There was a problem hiding this comment.
The rxjs failure is a known issue unrelated to your PR.
LGTM
|
the CI will be ok after #935 is merged, currently |
|
Do I need to bump travis after that happens? |
|
@sandersn , I will do that for you, I can restart travis build for all failure pull request. |
…stable macroTask (angular#938) * fix(fakeAsyncTest): fix angular#937, let user be able to customize testable macroTask * add global flag to define fakeAsyncTest macroTaskOptions * support set callback arguments
34ac330 to
87b0afb
Compare
|
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
1 similar comment
|
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
|
I rebased and push squash your SHAs. Waiting for travis. |
|
Just realized this was addressed in 1acab39. Closing as duplicate |
This allows zone.js to compile on Typescript 2.4 and above.
ZoneAwarePromise doesn't correctly extend Promise:
thenandcatchboth need to have different types for theonRejectedreturn type (same is true ofscheduleResolveOrReject). And thevalueparameter ofonFulfilledshould not be the same as the promised return type.Typescript 2.6 also catches a location where type inference fails and requires a type argument.
I fixed the
ZoneAwarePromisedefinition basically by copying the definition ofthenfromPromise.Fixes #939.