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

Commit bd739b0

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 7deb83c commit bd739b0

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
@@ -2521,8 +2521,6 @@ if (window.jasmine || window.mocha) {
25212521
throw new ErrorAddingDeclarationLocationStack(e, errorForStack);
25222522
}
25232523
throw e;
2524-
} finally {
2525-
errorForStack = null;
25262524
}
25272525
}
25282526
}

0 commit comments

Comments
 (0)