Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
34 lines
886 B
JavaScript
34 lines
886 B
JavaScript
// Module ID: 44
|
|
// Function ID: 45
|
|
// Dependencies: [45]
|
|
|
|
// Module 44
|
|
import _mod45 from "module_45" /* 45 */;
|
|
|
|
|
|
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 = _mod45;
|
|
} else {
|
|
return "string" === str ? String : Number(arg0);
|
|
}
|
|
}
|
|
}
|
|
return arg0;
|
|
};
|