Skip to content

Commit 4b0763f

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 c63a1e3 commit 4b0763f

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
@@ -2960,8 +2960,6 @@ angular.mock.$RootScopeDecorator = ['$delegate', function($delegate) {
29602960
throw new ErrorAddingDeclarationLocationStack(e, errorForStack);
29612961
}
29622962
throw e;
2963-
} finally {
2964-
errorForStack = null;
29652963
}
29662964
}
29672965
}

0 commit comments

Comments
 (0)