decord/source/__helpers/00xxx/160__construct.js

33 lines
799 B
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 160
// Function ID: 161
// Name: _construct
// Dependencies: [161, 99]
// Module 160 (_construct)
import _mod161 from "module_161" /* 161 */;
2026-08-24 06:08:38 +00:00
const _setPrototypeOf = tmp(99);
2026-07-29 08:29:29 +00:00
export default function _construct(bind, arg1, arg2) {
if (_mod161()) {
2026-07-29 08:29:29 +00:00
const _Reflect = Reflect;
const apply = construct.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(null);
} else {
applyArgumentsResult = apply(null, arguments);
}
return applyArgumentsResult;
} else {
const items = [null];
const push = items.push;
push.apply(items, arg1);
bind = bind.bind;
const tmp9 = new bind.apply(bind, items)();
if (arg2) {
2026-08-24 06:08:38 +00:00
_setPrototypeOf(tmp9, arg2.prototype);
2026-07-29 08:29:29 +00:00
}
return tmp9;
}
};