46 lines
1.1 KiB
JavaScript
46 lines
1.1 KiB
JavaScript
// Module ID: 4443
|
|
// Function ID: 4444
|
|
// Name: getEvalledConstructor
|
|
// Dependencies: [4444, 4445]
|
|
|
|
// Module 4443 (getEvalledConstructor)
|
|
import getEvalledConstructor from "getEvalledConstructor" /* 4444 */;
|
|
import DefinePropertyOrThrow from "DefinePropertyOrThrow" /* 4445 */;
|
|
|
|
const tmp = getEvalledConstructor("%Reflect.construct%", true);
|
|
let closure_0 = 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 {
|
|
callback(arg0, obj);
|
|
} catch (tmp5) {
|
|
return tmp5 === closure_1;
|
|
}
|
|
};
|
|
}
|
|
}
|
|
module.exports = function IsConstructor(fn) {
|
|
let prototype = typeof fn === "function";
|
|
if (typeof fn === "function") {
|
|
prototype = fn.prototype;
|
|
}
|
|
return prototype;
|
|
};
|
|
} catch (err) {
|
|
tmp4 = null;
|
|
}
|