mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
fix(mock): prevent NPE when module definition outside of it.
This commit is contained in:
parent
364e597499
commit
5c735eb4ab
1 changed files with 1 additions and 1 deletions
2
src/ngMock/angular-mocks.js
vendored
2
src/ngMock/angular-mocks.js
vendored
|
|
@ -1782,7 +1782,7 @@ window.jstestdriver && (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