decord/source/module_4412.js

44 lines
1.2 KiB
JavaScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 4412
// Function ID: 4413
2026-08-11 06:20:06 +00:00
// Dependencies: [574, 544, 1414]
2026-07-29 08:29:29 +00:00
2026-08-24 06:08:38 +00:00
// Module 4412
import _Symbol from "_Symbol" /* 544 */;
import callBoundIntrinsic from "callBoundIntrinsic" /* 574 */;
import regexTester from "regexTester" /* 1414 */;
let closure_0 = callBoundIntrinsic("Object.prototype.toString");
if (_Symbol()) {
let closure_1 = callBoundIntrinsic("Symbol.prototype.toString");
let closure_2 = regexTester(/^Symbol\(.*\)$/);
2026-08-04 21:03:28 +00:00
module.exports = function isSymbol(obj) {
if (typeof obj === "symbol") {
2026-07-29 08:29:29 +00:00
return true;
} else {
2026-08-04 21:03:28 +00:00
if (obj) {
if (typeof obj === "object") {
if ("[object Symbol]" === callback(obj)) {
2026-07-29 08:29:29 +00:00
try {
return (function isRealSymbolObject(arg0) {
const valueOfResult = arg0.valueOf();
2026-08-04 21:03:28 +00:00
let tmp2 = typeof valueOfResult === "symbol";
if (typeof valueOfResult === "symbol") {
2026-07-29 08:29:29 +00:00
tmp2 = callback2(callback(arg0));
}
return tmp2;
2026-08-04 21:03:28 +00:00
})(obj);
2026-07-29 08:29:29 +00:00
} catch (err) {
return false;
}
}
}
}
return false;
}
};
} else {
module.exports = function isSymbol(arg0) {
return false;
};
}