This repository was archived by the owner on Feb 26, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the code should not be added here, because it means the current microTask will not be scheduled. If you think this logic need to be handled, you need to add the logic to
patchThen
method, but I don't think we need to handle old browser likechrome 34
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this line is not code. just part of template string.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok. got it, in fact, I forget I already fixed this one in #1079. So please wait for the next release.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No #1079 is not initializePromise.__zone_symbol__then
becausePromise.then
is not patchable OK?~~The problem is https://github.com/angular/zone.js/pull/1098/files/d4ac887fd112c3fde3a167223c42ecbac76c1f14#diff-dd469785fca8680a5b33b1e81c5cfd91R1276 ~~
nativeMicroTaskQueuePromise
isPromise
andsymbolThen
is '__zone_symbol__then. so Invoking
Promise. __zone_symbol__then` is always throwing error.But some case. Promise.then is not patchable but the error message onlyundefined is not function
and no other error message, no error stack trace. in this case It's very hard to find this problem.It is not problem of only old browser. If some library setPromise.then
to not patchable. developer will be face this problem and searching what is the matter of this error message.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JiaLiPassion Oh #1079 is exactly i want. I will wating next release. 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, sure, thank you for reporting the issue.