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

37 lines
843 B
JavaScript

// Metro module 4482 (f4483).
import * as _Module4483 from "./Module4483";
import * as _DefinePropertyOrThrow from "./DefinePropertyOrThrow";
let r16;
let c2696_1, c2696_2;
let c2696_0 = _Module4483("%Reflect.construct%", true);
try {
_DefinePropertyOrThrow({}, "", {
"[[Get]]": function() {}
});
r16 = _DefinePropertyOrThrow;
} catch ($e) {
r16 = null;
}
if (r16 && c2696_0) {
c2696_1 = {};
const r21 = {};
c2696_2 = r21;
r16(r21, "length", {
"[[Get]]": function() {
throw c2696_1;
},
"[[Enumerable]]": true
});
module.exports = function IsConstructor(a0) {
try {
c2696_0(a0, c2696_2);
} catch ($e) {
return $e === c2696_1;
}
};
} else {
module.exports = function IsConstructor(a0) {
return typeof a0 === "function" ? !!a0.prototype : typeof a0 === "function";
};
}