decord/source/__polyfill/04xxx/module_4904.js
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

43 lines
1.2 KiB
JavaScript

// Module ID: 4904
// Function ID: 4905
// Dependencies: [1315, 1285, 1447]
// Module 4904
import _Symbol from "_Symbol" /* 1285 */;
import callBoundIntrinsic from "callBoundIntrinsic" /* 1315 */;
import regexTester from "regexTester" /* 1447 */;
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;
};
}