29 lines
738 B
JavaScript
29 lines
738 B
JavaScript
// Module ID: 1422
|
|
// Function ID: 1423
|
|
// Name: callBind
|
|
// Dependencies: [551, 1423, 564, 1426]
|
|
|
|
// Module 1422 (callBind)
|
|
import callBindBasic from "callBindBasic" /* 551 */;
|
|
import flag from "flag" /* 564 */;
|
|
import setFunctionLength from "setFunctionLength" /* 1423 */;
|
|
import applyBind from "applyBind" /* 1426 */;
|
|
|
|
if (flag) {
|
|
const obj = { value: null };
|
|
const _module = flag;
|
|
obj[0] = applyBind;
|
|
_module(module.exports, "apply", obj);
|
|
} else {
|
|
module.exports.apply = applyBind;
|
|
}
|
|
|
|
export default function callBind(arg0) {
|
|
const diff = arg0.length - (arguments.length - 1);
|
|
let num = 0;
|
|
const tmp = callBindBasic(arguments);
|
|
if (0 < diff) {
|
|
num = diff;
|
|
}
|
|
return setFunctionLength(tmp, 1 + num, true);
|
|
};
|