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

Commit 1c238a1

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 7ad5695 commit 1c238a1

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
@@ -2694,8 +2694,6 @@ if (window.jasmine || window.mocha) {
26942694
throw new ErrorAddingDeclarationLocationStack(e, errorForStack);
26952695
}
26962696
throw e;
2697-
} finally {
2698-
errorForStack = null;
26992697
}
27002698
}
27012699
}

0 commit comments

Comments
 (0)