(fn, locals, serviceName)
| 4728 | |
| 4729 | |
| 4730 | function injectionArgs(fn, locals, serviceName) { |
| 4731 | var args = [], |
| 4732 | $inject = createInjector.$$annotate(fn, strictDi, serviceName); |
| 4733 | |
| 4734 | for (var i = 0, length = $inject.length; i < length; i++) { |
| 4735 | var key = $inject[i]; |
| 4736 | if (typeof key !== 'string') { |
| 4737 | throw $injectorMinErr('itkn', |
| 4738 | 'Incorrect injection token! Expected service name as string, got {0}', key); |
| 4739 | } |
| 4740 | args.push(locals && locals.hasOwnProperty(key) ? locals[key] : |
| 4741 | getService(key, serviceName)); |
| 4742 | } |
| 4743 | return args; |
| 4744 | } |
| 4745 | |
| 4746 | function isClass(func) { |
| 4747 | // IE 9-11 do not support classes and IE9 leaks with the code below. |
no test coverage detected