mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
fix(mock): prevent NPE when module definition outside of it.
This commit is contained in:
parent
cd6dd22b19
commit
4acd75b904
1 changed files with 1 additions and 1 deletions
2
src/ngMock/angular-mocks.js
vendored
2
src/ngMock/angular-mocks.js
vendored
|
|
@ -1753,7 +1753,7 @@ window.jasmine && (function(window) {
|
|||
try {
|
||||
injector.invoke(blockFns[i] || angular.noop, this);
|
||||
} catch (e) {
|
||||
if(e.stack) e.stack += '\n' + errorForStack.stack;
|
||||
if(e.stack && errorForStack) e.stack += '\n' + errorForStack.stack;
|
||||
throw e;
|
||||
} finally {
|
||||
errorForStack = null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue