decord/source/__polyfill/04xxx/module_4780.js
2026-09-03 10:05:34 +00:00

43 lines
1.2 KiB
JavaScript

// Module ID: 4780
// Function ID: 4781
// Dependencies: [571, 541, 1409]
// Module 4780
import _Symbol from "_Symbol" /* 541 */;
import callBoundIntrinsic from "callBoundIntrinsic" /* 571 */;
import regexTester from "regexTester" /* 1409 */;
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;
};
}