decord/source/module_4412.js
2026-08-24 06:08:38 +00:00

43 lines
1.2 KiB
JavaScript

// Module ID: 4412
// Function ID: 4413
// Dependencies: [574, 544, 1414]
// 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\(.*\)$/);
module.exports = function isSymbol(obj) {
if (typeof obj === "symbol") {
return true;
} else {
if (obj) {
if (typeof obj === "object") {
if ("[object Symbol]" === callback(obj)) {
try {
return (function isRealSymbolObject(arg0) {
const valueOfResult = arg0.valueOf();
let tmp2 = typeof valueOfResult === "symbol";
if (typeof valueOfResult === "symbol") {
tmp2 = callback2(callback(arg0));
}
return tmp2;
})(obj);
} catch (err) {
return false;
}
}
}
}
return false;
}
};
} else {
module.exports = function isSymbol(arg0) {
return false;
};
}