decord/source/1422_callBind.js

30 lines
738 B
JavaScript
Raw Normal View History

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