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

Commit 6d7833b

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 2ec9f67 commit 6d7833b

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
@@ -2524,8 +2524,6 @@ if (window.jasmine || window.mocha) {
25242524
throw new ErrorAddingDeclarationLocationStack(e, errorForStack);
25252525
}
25262526
throw e;
2527-
} finally {
2528-
errorForStack = null;
25292527
}
25302528
}
25312529
}

0 commit comments

Comments
 (0)