decord/source/__helpers/00xxx/160__construct.js
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

32 lines
799 B
JavaScript

// Module ID: 160
// Function ID: 161
// Name: _construct
// Dependencies: [161, 99]
// Module 160 (_construct)
import _mod161 from "module_161" /* 161 */;
const _setPrototypeOf = tmp(99);
export default function _construct(bind, arg1, arg2) {
if (_mod161()) {
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) {
_setPrototypeOf(tmp9, arg2.prototype);
}
return tmp9;
}
};