decord/source/__polyfill/04xxx/module_4902.js
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

43 lines
1.2 KiB
JavaScript

// Module ID: 4902
// Function ID: 4903
// Dependencies: [1316, 1286, 1446]
// Module 4902
import _Symbol from "_Symbol" /* 1286 */;
import callBoundIntrinsic from "callBoundIntrinsic" /* 1316 */;
import regexTester from "regexTester" /* 1446 */;
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]" === closure_0(obj)) {
try {
return (function isRealSymbolObject(arg0) {
const valueOfResult = arg0.valueOf();
let tmp2 = typeof valueOfResult === "symbol";
if (typeof valueOfResult === "symbol") {
tmp2 = closure_1_2(closure_1_1(arg0));
}
return tmp2;
})(obj);
} catch (err) {
return false;
}
}
}
}
return false;
}
};
} else {
module.exports = function isSymbol(arg0) {
return false;
};
}