decord/source/4486_getEvalledConstructor.js

46 lines
1.1 KiB
JavaScript
Raw Normal View History

2026-07-31 08:44:05 +00:00
// Module ID: 4486
// Function ID: 4487
2026-07-29 08:29:29 +00:00
// Name: getEvalledConstructor
2026-07-31 08:44:05 +00:00
// Dependencies: [4487, 4488]
2026-07-29 08:29:29 +00:00
2026-07-31 08:44:05 +00:00
// Module 4486 (getEvalledConstructor)
2026-07-29 08:29:29 +00:00
import DefinePropertyOrThrow from "DefinePropertyOrThrow";
const tmp = require("getEvalledConstructor")("%Reflect.construct%", true);
let c0 = tmp;
try {
let obj = { "[[Get]]": null };
obj[0] = () => {
};
DefinePropertyOrThrow({}, "", obj);
let tmp4 = DefinePropertyOrThrow;
if (tmp4) {
if (tmp) {
let closure_1 = {};
obj = {};
obj = { "[[Get]]": null, "[[Enumerable]]": true };
obj[0] = () => {
throw closure_1;
};
tmp4(obj, "length", obj);
module.exports = function IsConstructor(arg0) {
try {
arg0(arg0, obj);
} catch (tmp5) {
return tmp5 === closure_1;
}
};
}
}
module.exports = function IsConstructor(arg0) {
2026-07-31 08:44:05 +00:00
let prototype = typeof arg0 === "fileFinishedImporting";
if (typeof arg0 !== "disabledUntil") {
2026-07-29 08:29:29 +00:00
prototype = arg0.prototype;
}
return prototype;
};
} catch (err) {
tmp4 = null;
}