decord/source/__polyfill/06xxx/module_6970.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

34 lines
902 B
JavaScript

// Module ID: 6970
// Function ID: 6971
// Dependencies: [6971]
// Module 6970
import _mod6971 from "module_6971" /* 6971 */;
export default function toPrimitive(arg0, arg1) {
if ("object" == obj.default(arg0)) {
if (arg0) {
let str = arg1;
const _Symbol = Symbol;
if (undefined !== arg0[Symbol.toPrimitive]) {
const call = tmp4.call;
if (!str) {
str = "default";
}
const tmp5 = typeof call === "unknown" ? tmp4(str) : call(arg0, str);
if ("object" != tmpResult.default(tmp5)) {
return tmp5;
} else {
const _TypeError = TypeError;
const typeError = new TypeError("@@toPrimitive must return a primitive value.");
throw typeError;
}
tmpResult = _mod6971;
} else {
return "string" === str ? String : Number(arg0);
}
}
}
return arg0;
};