decord/source/__polyfill/13xxx/module_13879.js
2026-08-27 16:17:25 +00:00

38 lines
947 B
JavaScript

// Module ID: 13879
// Function ID: 13880
// Dependencies: [13880, 13891, 13893, 13896, 13899, 13900]
// Module 13879
import withoutSetter from "withoutSetter" /* 13880 */;
import all from "all" /* 13891 */;
let closure_3 = withoutSetter("toPrimitive");
export default (arg0, arg1) => {
if (all(arg0)) {
if (!tmp(13893)(arg0)) {
let str = arg1;
const tmp4 = tmp(13896)(arg0, closure_3);
if (tmp4) {
if (undefined === str) {
str = "default";
}
const tmp5 = tmp(13899)(tmp4, arg0, str);
if (tmp(13891)(tmp5)) {
if (!tmp(13893)(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(13900)(arg0, str2);
}
}
}
return arg0;
};