decord/source/module_13744.js

39 lines
947 B
JavaScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 13744
// Function ID: 13745
// Dependencies: [13745, 13756, 13758, 13761, 13764, 13765]
// Module 13744
import withoutSetter from "withoutSetter" /* 13745 */;
import all from "all" /* 13756 */;
let closure_3 = withoutSetter("toPrimitive");
export default (arg0, arg1) => {
if (all(arg0)) {
if (!tmp(13758)(arg0)) {
let str = arg1;
const tmp4 = tmp(13761)(arg0, closure_3);
if (tmp4) {
if (undefined === str) {
str = "default";
}
const tmp5 = tmp(13764)(tmp4, arg0, str);
if (tmp(13756)(tmp5)) {
if (!tmp(13758)(tmp5)) {
const tmp9 = new TypeError("Can't convert object to primitive value");
throw tmp9;
}
}
return tmp5;
} else {
let str2 = str;
if (undefined === str) {
str2 = "number";
}
return tmp(13765)(arg0, str2);
}
}
}
return arg0;
};