decord/source/160__construct.js

31 lines
755 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)
export default function _construct(bind) {
if (require(161) /* _isNativeReflectConstruct */()) {
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) {
tmp(99)(tmp9, arg2.prototype);
}
return tmp9;
}
tmp = require;
};