(sourceFunc, boundFunc, context, callingContext, args)
| 1013 | // `args`. Determines whether to execute a function as a constructor or as a |
| 1014 | // normal function. |
| 1015 | function executeBound(sourceFunc, boundFunc, context, callingContext, args) { |
| 1016 | if (!(callingContext instanceof boundFunc)) return sourceFunc.apply(context, args); |
| 1017 | var self = baseCreate(sourceFunc.prototype); |
| 1018 | var result = sourceFunc.apply(self, args); |
| 1019 | if (isObject(result)) return result; |
| 1020 | return self; |
| 1021 | } |
| 1022 | |
| 1023 | // Partially apply a function by creating a version that has had some of its |
| 1024 | // arguments pre-filled, without changing its dynamic `this` context. `_` acts |
no test coverage detected
searching dependent graphs…