mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-16 10:43:10 +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 {
|
try {
|
||||||
injector.invoke(blockFns[i] || angular.noop, this);
|
injector.invoke(blockFns[i] || angular.noop, this);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if(e.stack) e.stack += '\n' + errorForStack.stack;
|
if(e.stack && errorForStack) e.stack += '\n' + errorForStack.stack;
|
||||||
throw e;
|
throw e;
|
||||||
} finally {
|
} finally {
|
||||||
errorForStack = null;
|
errorForStack = null;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue