Files
discord-decomp/_bundle/_construct.js
T
2026-11-01 12:12:55 +02:00

18 lines
544 B
JavaScript

// Metro module 160 (f161).
import * as __isNativeReflectConstruct from "./_isNativeReflectConstruct";
import * as __setPrototypeOf from "./_setPrototypeOf";
module.exports = function _construct(a0, a1, a2) {
if (__isNativeReflectConstruct()) {
return Reflect.construct.apply(null, arguments);
}
const r7 = [null];
r7.push.apply(r7, a1);
const r23 = new (a0.bind.apply(a0, r7))();
if (a2) {
__setPrototypeOf(r23, a2.prototype);
}
return r23;
};
module.exports.__esModule = true;
module.exports.default = module.exports;