(func)
| 5086 | } |
| 5087 | |
| 5088 | function isClass(func) { |
| 5089 | // Support: IE 9-11 only |
| 5090 | // IE 9-11 do not support classes and IE9 leaks with the code below. |
| 5091 | if (msie || typeof func !== 'function') { |
| 5092 | return false; |
| 5093 | } |
| 5094 | var result = func.$$ngIsClass; |
| 5095 | if (!isBoolean(result)) { |
| 5096 | // Support: Edge 12-13 only |
| 5097 | // See: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/6156135/ |
| 5098 | result = func.$$ngIsClass = /^(?:class\b|constructor\()/.test(stringifyFn(func)); |
| 5099 | } |
| 5100 | return result; |
| 5101 | } |
| 5102 | |
| 5103 | function invoke(fn, self, locals, serviceName) { |
| 5104 | if (typeof locals === 'string') { |
no test coverage detected