diff --git a/src/ng/rootScope.js b/src/ng/rootScope.js index 30f2fa0e..6636df2b 100644 --- a/src/ng/rootScope.js +++ b/src/ng/rootScope.js @@ -699,7 +699,6 @@ function $RootScopeProvider(){ asyncTask = asyncQueue.shift(); asyncTask.scope.$eval(asyncTask.expression); } catch (e) { - clearPhase(); $exceptionHandler(e); } lastDirtyWatch = null; @@ -742,7 +741,6 @@ function $RootScopeProvider(){ } } } catch (e) { - clearPhase(); $exceptionHandler(e); } } diff --git a/test/ng/rootScopeSpec.js b/test/ng/rootScopeSpec.js index 40fe7f9c..74eec39f 100644 --- a/test/ng/rootScopeSpec.js +++ b/test/ng/rootScopeSpec.js @@ -176,15 +176,6 @@ describe('Scope', function() { }); }); - it('should clear phase if an exception interrupt $digest cycle', function() { - inject(function($rootScope) { - $rootScope.$watch('a', function() {throw new Error('abc');}); - $rootScope.a = 1; - try { $rootScope.$digest(); } catch(e) { } - expect($rootScope.$$phase).toBeNull(); - }); - }); - it('should fire watches in order of addition', inject(function($rootScope) { // this is not an external guarantee, just our own sanity