decord/source/__polyfill/04xxx/module_4933.js
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

48 lines
1 KiB
JavaScript

// Module ID: 4933
// Function ID: 4934
// Dependencies: [4934, 4935]
// Module 4933
import _mod4934 from "module_4934" /* 4934 */;
import DefinePropertyOrThrow from "DefinePropertyOrThrow" /* 4935 */;
const tmp = _mod4934("%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;
}