-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reinstate the "prevent unwanted clearInterval" PR #3225
Comments
That... might have been the time I built 5.5 with the wrong version of TypeScript. 😬 That said, we need to be careful with 6.0, as it's using a newer version of TypeScript. |
@benlesh FYI, the It's different to the 5.5.2
Actually, the I guess it's this: Extending built-ins like Anyway, 6.0 will be fine. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I left a comment on the PR that reverted PR #3044. After Zone.js 0.8.19 was released I looked into the reported Angular problem and discovered that PR #3044 was not the cause.
The comment is repeated below.
FYI, the problem with 5.5.3 is unrelated to PR #3044 and it was not the reversion of that PR that solved the problem of Angular's routing module effecting an
EmptyError
.Instead, the problem appears to have been the way in which the
.js
files in 5.5.3 were generated.I can reproduce the effected error by taking the
util/EmptyError.js
file from 5.5.3 and overwriting the file in the 5.5.2 distribution.In fact, if you look at the files that are incorporated into the Plunk, you will see that
scheduler/AsyncAction.js
- the file modified in PR #3044 - does not even form part of the build.The 5.5.2
EmptyError.js
file looks like this:Whereas the 5.5.3
EmptyError.js
file looks like this:The
EmptyError
implementation in 5.5.3 seems to mess with thisinstanceof
test in Angular's router.Why the two generated files differ, I have no idea. The
EmptyError.js
generated for 5.5.4 is identical to that generated for 5.5.2, yet there appear to be no configuration changes between 5.5.3 and 5.5.4, so I can only presume that the build environment for 5.5.3 was not what it should have been.The Zone.js bug - in the PR that I referenced above - does not effect the
EmptyError
. The bug is related to my PR, as there was a (far more subtle) problem with Zone.js andsetInterval
, but that has been fixed with the release of version 0.8.19 of Zone.js.Given that the reported problem was unrelated to the reverted PR and that the PR fixes a problem with intervals drifting (see this issue and this SO question) I think the commit should be reinstated. If not into stable, then definitely into master.
The text was updated successfully, but these errors were encountered: