angular / zone.js

Implements Zones for JavaScript
https://github.com/angular/angular/tree/master/packages/zone.js/
MIT License
3.25k stars 408 forks source link

fix(core): fix interval will still run after cancelled error #1156

Closed JiaLiPassion closed 5 years ago

JiaLiPassion commented 6 years ago

This issue is posted by @vsavkin from slack, in one project using angularjs 1.X ngUpgrade with Angular5, in Edge, the setInterval will still call runTask after cancelInterval, cannot reproduce with a simple project. There is the similar error before in #778, so in this PR, we will add some code to prevent such kind of error.

@mhevery, please review.