8000 fix(ngMock window.inject): correct error stack trace update on all in… · angular/angular.js@c124a02 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit c124a02

Browse files
fix(ngMock window.inject): correct error stack trace update on all invocations
Failed injection functions should consistently include their respective window.inject() call location information in their stack trace, even on repeated invocations & when they have been passed as a non-initial parameter to their window.inject() call.
1 parent e801dc0 commit c124a02

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/ngMock/angular-mocks.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2946,8 +2946,6 @@ angular.mock.$RootScopeDecorator = ['$delegate', function($delegate) {
29462946
throw new ErrorAddingDeclarationLocationStack(e, errorForStack);
29472947
}
29482948
throw e;
2949-
} finally {
2950-
errorForStack = null;
29512949
}
29522950
}
29532951
}

0 commit comments

Comments
 (0)
0