decord/source/7624__asyncOptionalChain2.js
2026-08-13 07:00:46 +00:00

141 lines
4.2 KiB
JavaScript

// Module ID: 7624
// Function ID: 7625
// Name: _asyncOptionalChain2
// Dependencies: [5]
// Exports: _asyncOptionalChain
// Module 7624 (_asyncOptionalChain2)
import asyncGeneratorStep from "asyncGeneratorStep";
function _asyncOptionalChain2() {
const self = this;
const tmp = asyncGeneratorStep((arg0) => {
let closure_0 = arg0;
let c2 = 0;
let c3 = 0;
return (function*(arg0) {
if (c3 === 2) {
c3 = 3;
HermesBuiltin.throwTypeError();
} else if (tmp3 === 3) {
if (arg0 === 1) {
throw arg1;
} else if (arg0 === 2) {
let obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
return { value: "HermesInternal", done: null };
}
} else {
try {
c3 = 2;
if (0 === closure_2) {
if (arg0 === 1) {
c3 = 3;
throw arg1;
} else if (arg0 === 2) {
c3 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
let c1 = tmp4;
closure_2 = undefined;
c3 = undefined;
let closure_4;
let callback;
c1 = undefined;
closure_2 = closure_0[0];
c3 = 1;
if (c3 < closure_0.length) {
closure_4 = closure_0[c3];
callback = closure_0[c3 + 1];
c3 = c3 + 2;
if ("optionalAccess" === closure_4) {
if (null == closure_2) {
c3 = 3;
return { value: "HermesInternal", done: null };
}
}
if ("access" !== closure_4) {
if ("optionalAccess" !== closure_4) {
let tmp22 = "call" !== closure_4;
if (tmp22) {
tmp22 = "optionalCall" !== closure_4;
}
if (!tmp22) {
closure_2 = 2;
c3 = 1;
const obj1 = { value: null, done: false };
obj1[0] = callback(() => {
const items = [c1, ...HermesBuiltin.copyRestArgs()];
return closure_2.call.apply(items);
});
return obj1;
}
}
}
c1 = closure_2;
closure_2 = 1;
c3 = 1;
const obj2 = { value: null, done: false };
obj2[0] = callback(closure_2);
return obj2;
}
c3 = 3;
const obj3 = { value: null, done: true };
obj3[0] = closure_2;
return obj3;
}
} else if (1 === tmp4) {
if (arg0 === 1) {
c3 = 3;
throw arg1;
} else if (arg0 === 2) {
c3 = 3;
const obj4 = { value: null, done: true };
obj4[0] = arg1;
return obj4;
} else {
closure_2 = arg1;
}
} else if (arg0 === 1) {
c3 = 3;
throw arg1;
} else if (arg0 === 2) {
c3 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
closure_2 = arg1;
c1 = undefined;
}
} catch (tmp31) {
c3 = tmp;
throw tmp31;
}
}
})();
});
const _asyncOptionalChain2 = tmp;
const apply = tmp.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
}
export const _asyncOptionalChain = function _asyncOptionalChain(closure_0) {
const self = this;
const apply = _asyncOptionalChain2.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
};