decord/source/763_toString.js

39 lines
789 B
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 763
// Function ID: 764
// Name: toString
// Dependencies: [608, 599, 764, 638]
// Module 763 (toString)
let prototype;
if (require("module_608")) {
prototype = require("module_608").prototype;
}
let toString;
if (prototype) {
toString = prototype.toString;
}
2026-08-04 21:03:28 +00:00
function baseToString(str) {
if (typeof str === "string") {
return str;
} else if (require(599)(str)) {
return "" + tmp5(764)(str, baseToString);
} else if (tmp5(638)(str)) {
2026-07-29 08:29:29 +00:00
if (!toString) {
return "";
} else {
const call = tmp2.call;
2026-08-04 21:03:28 +00:00
typeof call === "unknown" ? tmp2() : call(str);
2026-07-29 08:29:29 +00:00
}
} else {
2026-08-04 21:03:28 +00:00
const text = `${str}`;
if ("0" !== `${str}`) {
2026-07-29 08:29:29 +00:00
let str2 = text;
} else {
str2 = "-0";
}
return str2;
}
}
export default baseToString;