MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / enforceReturnValue

Function enforceReturnValue

lib/test/angular/1.6.7/angular.js:4928–4936  ·  view source on GitHub ↗
(name, factory)

Source from the content-addressed store, hash-verified

4926 }
4927
4928 function enforceReturnValue(name, factory) {
4929 return /** @this */ function enforcedReturnValue() {
4930 var result = instanceInjector.invoke(factory, this);
4931 if (isUndefined(result)) {
4932 throw $injectorMinErr('undef', 'Provider \'{0}\' must return a value from $get factory method.', name);
4933 }
4934 return result;
4935 };
4936 }
4937
4938 function factory(name, factoryFn, enforce) {
4939 return provider(name, {

Callers 1

factoryFunction · 0.70

Calls 1

isUndefinedFunction · 0.70

Tested by

no test coverage detected