decord/source/1392_isArguments.js

97 lines
2 KiB
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 1392
// Function ID: 1393
// Name: isArguments
// Dependencies: [1393, 574]
// Module 1392 (isArguments)
let closure_0 = require("hasToStringTagShams")();
let closure_1 = require("callBoundIntrinsic")("Object.prototype.toString");
2026-08-04 21:03:28 +00:00
function isArguments(obj) {
2026-07-29 08:29:29 +00:00
let tmp = closure_0;
if (closure_0) {
2026-08-04 21:03:28 +00:00
tmp = obj;
2026-07-29 08:29:29 +00:00
}
if (tmp) {
2026-08-04 21:03:28 +00:00
tmp = typeof obj === "object";
2026-07-29 08:29:29 +00:00
}
if (tmp) {
const _Symbol = Symbol;
2026-08-04 21:03:28 +00:00
tmp = Symbol.toStringTag in obj;
2026-07-29 08:29:29 +00:00
}
let tmp3 = !tmp;
if (!tmp) {
2026-08-04 21:03:28 +00:00
tmp3 = "[object Arguments]" === callback(obj);
2026-07-29 08:29:29 +00:00
}
return tmp3;
}
2026-08-04 21:03:28 +00:00
let isArguments2 = function isArguments(obj) {
if (typeof isArguments !== "function") {
2026-07-29 08:29:29 +00:00
HermesBuiltin.throwTypeError();
}
let tmp = closure_0;
if (closure_0) {
2026-08-04 21:03:28 +00:00
tmp = obj;
2026-07-29 08:29:29 +00:00
}
if (tmp) {
2026-08-04 21:03:28 +00:00
tmp = typeof obj === "object";
2026-07-29 08:29:29 +00:00
}
if (tmp) {
const _Symbol = Symbol;
2026-08-04 21:03:28 +00:00
tmp = Symbol.toStringTag in obj;
2026-07-29 08:29:29 +00:00
}
let tmp3 = !tmp;
if (!tmp) {
2026-08-04 21:03:28 +00:00
tmp3 = "[object Arguments]" === callback(obj);
2026-07-29 08:29:29 +00:00
}
let tmp5 = tmp3;
if (!tmp5) {
2026-08-04 21:03:28 +00:00
let tmp7 = null !== obj && typeof obj === "object";
2026-07-29 08:29:29 +00:00
if (tmp7) {
2026-08-04 21:03:28 +00:00
tmp7 = "length" in obj;
2026-07-29 08:29:29 +00:00
}
if (tmp7) {
2026-08-04 21:03:28 +00:00
tmp7 = typeof obj.length === "number";
2026-07-29 08:29:29 +00:00
}
if (tmp7) {
2026-08-04 21:03:28 +00:00
tmp7 = obj.length >= 0;
2026-07-29 08:29:29 +00:00
}
if (tmp7) {
2026-08-04 21:03:28 +00:00
tmp7 = "[object Array]" !== callback(obj);
2026-07-29 08:29:29 +00:00
}
if (tmp7) {
2026-08-04 21:03:28 +00:00
tmp7 = "callee" in obj;
2026-07-29 08:29:29 +00:00
}
if (tmp7) {
2026-08-04 21:03:28 +00:00
tmp7 = "[object Function]" === callback(obj.callee);
2026-07-29 08:29:29 +00:00
}
tmp5 = tmp7;
}
return tmp5;
};
isArguments.isLegacyArguments = isArguments2;
if ((() => {
2026-08-04 21:03:28 +00:00
if (typeof isArguments !== "function") {
2026-07-29 08:29:29 +00:00
HermesBuiltin.throwTypeError();
}
let tmp = closure_0;
if (closure_0) {
tmp = arguments;
}
if (tmp) {
2026-08-04 21:03:28 +00:00
tmp = typeof arguments === "object";
2026-07-29 08:29:29 +00:00
}
if (tmp) {
const _Symbol = Symbol;
tmp = Symbol.toStringTag in arguments;
}
let tmp9 = !tmp;
if (!tmp) {
tmp9 = "[object Arguments]" === callback(arguments);
}
return tmp9;
})()) {
isArguments2 = isArguments;
}
export default isArguments2;