File tree 2 files changed +0
-11
lines changed
2 files changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -699,7 +699,6 @@ function $RootScopeProvider(){
699
699
asyncTask = asyncQueue . shift ( ) ;
700
700
asyncTask . scope . $eval ( asyncTask . expression ) ;
701
701
} catch ( e ) {
702
- clearPhase ( ) ;
703
702
$exceptionHandler ( e ) ;
704
703
}
705
704
lastDirtyWatch = null ;
@@ -742,7 +741,6 @@ function $RootScopeProvider(){
742
741
}
743
742
}
744
743
} catch ( e ) {
745
- clearPhase ( ) ;
746
744
$exceptionHandler ( e ) ;
747
745
}
748
746
}
Original file line number Diff line number Diff line change @@ -176,15 +176,6 @@ describe('Scope', function() {
176
176
} ) ;
177
177
} ) ;
178
178
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
-
188
179
189
180
it ( 'should fire watches in order of addition' , inject ( function ( $rootScope ) {
190
181
// this is not an external guarantee, just our own sanity
You can’t perform that action at this time.
0 commit comments