(func)
| 4577 | } |
| 4578 | |
| 4579 | function isClass(func) { |
| 4580 | // IE 9-11 do not support classes and IE9 leaks with the code below. |
| 4581 | if (msie <= 11) { |
| 4582 | return false; |
| 4583 | } |
| 4584 | // Workaround for MS Edge. |
| 4585 | // Check https://connect.microsoft.com/IE/Feedback/Details/2211653 |
| 4586 | return typeof func === 'function' |
| 4587 | && /^(?:class\s|constructor\()/.test(Function.prototype.toString.call(func)); |
| 4588 | } |
| 4589 | |
| 4590 | function invoke(fn, self, locals, serviceName) { |
| 4591 | if (typeof locals === 'string') { |