(sourceFunc, boundFunc, context, callingContext, args)
| 983 | // `args`. Determines whether to execute a function as a constructor or as a |
| 984 | // normal function. |
| 985 | function executeBound(sourceFunc, boundFunc, context, callingContext, args) { |
| 986 | if (!(callingContext instanceof boundFunc)) return sourceFunc.apply(context, args); |
| 987 | var self = baseCreate(sourceFunc.prototype); |
| 988 | var result = sourceFunc.apply(self, args); |
| 989 | if (isObject(result)) return result; |
| 990 | return self; |
| 991 | } |
| 992 | |
| 993 | // Partially apply a function by creating a version that has had some of its |
| 994 | // arguments pre-filled, without changing its dynamic `this` context. `_` acts |
no test coverage detected