File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -699,7 +699,6 @@ function $RootScopeProvider(){
699699 asyncTask = asyncQueue . shift ( ) ;
700700 asyncTask . scope . $eval ( asyncTask . expression ) ;
701701 } catch ( e ) {
702- clearPhase ( ) ;
703702 $exceptionHandler ( e ) ;
704703 }
705704 lastDirtyWatch = null ;
@@ -742,7 +741,6 @@ function $RootScopeProvider(){
742741 }
743742 }
744743 } catch ( e ) {
745- clearPhase ( ) ;
746744 $exceptionHandler ( e ) ;
747745 }
748746 }
Original file line number Diff line number Diff line change @@ -176,15 +176,6 @@ describe('Scope', function() {
176176 } ) ;
177177 } ) ;
178178
179- it ( 'should clear phase if an exception interrupt $digest cycle' , function ( ) {
180- inject ( function ( $rootScope ) {
181- $rootScope . $watch ( 'a' , function ( ) { throw new Error ( 'abc' ) ; } ) ;
182- $rootScope . a = 1 ;
183- try { $rootScope . $digest ( ) ; } catch ( e ) { }
184- expect ( $rootScope . $$phase ) . toBeNull ( ) ;
185- } ) ;
186- } ) ;
187-
188179
189180 it ( 'should fire watches in order of addition' , inject ( function ( $rootScope ) {
190181 // this is not an external guarantee, just our own sanity
You can’t perform that action at this time.
0 commit comments