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

Commit e5bbc49

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. Closes #13594.
1 parent a113218 commit e5bbc49

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/ngMock/angular-mocks.js

-2
Original file line numberDiff line numberDiff line change
@@ -2445,8 +2445,6 @@ if (window.jasmine || window.mocha) {
24452445
throw new ErrorAddingDeclarationLocationStack(e, errorForStack);
24462446
}
24472447
throw e;
2448-
} finally {
2449-
errorForStack = null;
24502448
}
24512449
}
24522450
}

0 commit comments

Comments
 (0)