()
| 35843 | thisArg = bindData[4]; |
| 35844 | |
| 35845 | function bound() { |
| 35846 | // `Function#bind` spec |
| 35847 | // http://es5.github.io/#x15.3.4.5 |
| 35848 | if (partialArgs) { |
| 35849 | // avoid `arguments` object deoptimizations by using `slice` instead |
| 35850 | // of `Array.prototype.slice.call` and not assigning `arguments` to a |
| 35851 | // variable as a ternary expression |
| 35852 | var args = slice(partialArgs); |
| 35853 | push.apply(args, arguments); |
| 35854 | } |
| 35855 | // mimic the constructor's `return` behavior |
| 35856 | // http://es5.github.io/#x13.2.2 |
| 35857 | if (this instanceof bound) { |
| 35858 | // ensure `new bound` is an instance of `func` |
| 35859 | var thisBinding = baseCreate(func.prototype), |
| 35860 | result = func.apply(thisBinding, args || arguments); |
| 35861 | return isObject(result) ? result : thisBinding; |
| 35862 | } |
| 35863 | return func.apply(thisArg, args || arguments); |
| 35864 | } |
| 35865 | setBindData(bound, bindData); |
| 35866 | return bound; |
| 35867 | } |
nothing calls this directly
no test coverage detected