decord/source/__polyfill/04xxx/module_4936.js
github-actions f0f877e8ce chore: update source for alpha 347.1
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
2026-09-15 14:23:42 +00:00

48 lines
1 KiB
JavaScript

// Module ID: 4936
// Function ID: 4937
// Dependencies: [4937, 4938]
// Module 4936
import _mod4937 from "module_4937" /* 4937 */;
import DefinePropertyOrThrow from "DefinePropertyOrThrow" /* 4938 */;
const tmp = _mod4937("%Reflect.construct%", true);
let closure_0 = tmp;
try {
const obj = {
() => {
}
};
DefinePropertyOrThrow({}, "", obj);
let tmp4 = DefinePropertyOrThrow;
if (tmp4) {
if (tmp) {
let closure_1 = {};
const obj2 = {};
const obj3 = {
() => {
throw closure_1;
},
"[[Enumerable]]": true
};
tmp4(obj2, "length", obj3);
module.exports = function IsConstructor(arg0) {
try {
closure_0(arg0, obj2);
} 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;
}