decord/source/4554_properlyBoxed.js

50 lines
988 B
JavaScript
Raw Normal View History

2026-08-08 06:10:11 +00:00
// Module ID: 4554
// Function ID: 4555
2026-07-29 08:29:29 +00:00
// Name: properlyBoxed
// Dependencies: []
2026-08-08 06:10:11 +00:00
// Module 4554 (properlyBoxed)
2026-07-29 08:29:29 +00:00
2026-08-04 21:03:28 +00:00
export default function properlyBoxed(fn) {
2026-07-29 08:29:29 +00:00
let c0 = true;
let c1 = true;
2026-08-04 21:03:28 +00:00
if (typeof fn === "function") {
2026-07-29 08:29:29 +00:00
try {
2026-08-04 21:03:28 +00:00
const call = fn.call;
fn = (arg0, arg1, obj) => {
if (typeof obj !== "object") {
2026-07-29 08:29:29 +00:00
let c0 = false;
}
};
if (typeof call === "unknown") {
2026-08-04 21:03:28 +00:00
fn(fn);
2026-07-29 08:29:29 +00:00
} else {
call("f", fn);
}
2026-08-04 21:03:28 +00:00
const call2 = fn.call;
2026-07-29 08:29:29 +00:00
const items = [null];
const fn2 = function() {
2026-08-04 21:03:28 +00:00
let closure_1 = typeof this === "string";
2026-07-29 08:29:29 +00:00
};
if (typeof call2 === "unknown") {
2026-08-04 21:03:28 +00:00
fn(fn2, "x");
2026-07-29 08:29:29 +00:00
} else {
call2(items, fn2, "x");
}
let flag = false;
let tmp3 = !flag;
if (!flag) {
tmp3 = c0;
}
if (tmp3) {
tmp3 = c1;
}
return tmp3;
} catch (err) {
flag = true;
}
} else {
return false;
}
};