8000 fix(ngMock window.inject): correct error stack trace update on all in… · angular/angular.js@e0e2a6f · 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 e0e2a6f

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 1ad8265 commit e0e2a6f

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
@@ -2960,8 +2960,6 @@ angular.mock.$RootScopeDecorator = ['$delegate', function($delegate) {
29602960
throw new ErrorAddingDeclarationLocationStack(e, errorForStack);
29612961
}
29622962
throw e;
2963-
} finally {
2964-
errorForStack = null;
29652963
}
29662964
}
29672965
}

0 commit comments

Comments
 (0)
0