Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
122 lines
3.6 KiB
JavaScript
122 lines
3.6 KiB
JavaScript
// Module ID: 13065
|
|
// Function ID: 13066
|
|
// Name: _asyncOptionalChain2
|
|
// Dependencies: [5]
|
|
// Exports: _asyncOptionalChain
|
|
|
|
// Module 13065 (_asyncOptionalChain2)
|
|
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
|
|
|
|
let closure_1 = async function _asyncOptionalChain2(arg0, value) {
|
|
if (c3 === 2) {
|
|
c3 = 3;
|
|
throw new TypeError("Generator functions may not be called on executing generators");
|
|
} else if (tmp3 === 3) {
|
|
if (arg0 === 1) {
|
|
throw value;
|
|
} else if (arg0 === 2) {
|
|
const obj2 = { value, done: true };
|
|
return obj2;
|
|
} else {
|
|
return { value: "HermesInternal", done: null };
|
|
}
|
|
} else {
|
|
try {
|
|
c3 = 2;
|
|
if (0 === c2) {
|
|
if (arg0 === 1) {
|
|
c3 = 3;
|
|
throw value;
|
|
} else if (arg0 === 2) {
|
|
c3 = 3;
|
|
const obj3 = { value, done: true };
|
|
return obj3;
|
|
} else {
|
|
closure_1 = tmp4;
|
|
closure_129_0 = length;
|
|
closure_129_2 = undefined;
|
|
closure_129_3 = undefined;
|
|
closure_129_4 = undefined;
|
|
closure_129_5 = undefined;
|
|
closure_129_1 = undefined;
|
|
closure_129_2 = length[0];
|
|
closure_129_3 = 1;
|
|
if (closure_129_3 < length.length) {
|
|
closure_129_4 = closure_129_0[closure_129_3];
|
|
closure_129_5 = closure_129_0[closure_129_3 + 1];
|
|
closure_129_3 = closure_129_3 + 2;
|
|
if ("optionalAccess" === closure_129_4) {
|
|
if (null == closure_129_2) {
|
|
c3 = 3;
|
|
return { value: "HermesInternal", done: null };
|
|
}
|
|
}
|
|
if ("access" !== closure_129_4) {
|
|
if ("optionalAccess" !== closure_129_4) {
|
|
let tmp22 = "call" !== closure_129_4;
|
|
if (tmp22) {
|
|
tmp22 = "optionalCall" !== closure_129_4;
|
|
}
|
|
if (!tmp22) {
|
|
c2 = 2;
|
|
c3 = 1;
|
|
const obj4 = {
|
|
value: closure_129_5(() => {
|
|
const items = [closure_1_1, ...HermesBuiltin.copyRestArgs()];
|
|
return closure_1_2.call.apply(items);
|
|
}),
|
|
done: false
|
|
};
|
|
return obj4;
|
|
}
|
|
}
|
|
}
|
|
closure_129_1 = closure_129_2;
|
|
c2 = 1;
|
|
c3 = 1;
|
|
const obj5 = { value: closure_129_5(closure_129_2), done: false };
|
|
return obj5;
|
|
}
|
|
c3 = 3;
|
|
const obj6 = { value: closure_129_2, done: true };
|
|
return obj6;
|
|
}
|
|
} else if (1 === tmp4) {
|
|
if (arg0 === 1) {
|
|
c3 = 3;
|
|
throw value;
|
|
} else if (arg0 === 2) {
|
|
c3 = 3;
|
|
const obj7 = { value, done: true };
|
|
return obj7;
|
|
} else {
|
|
closure_129_2 = value;
|
|
}
|
|
} else if (arg0 === 1) {
|
|
c3 = 3;
|
|
throw value;
|
|
} else if (arg0 === 2) {
|
|
c3 = 3;
|
|
const obj = { value, done: true };
|
|
return obj;
|
|
} else {
|
|
closure_129_2 = value;
|
|
closure_129_1 = undefined;
|
|
}
|
|
} catch (tmp31) {
|
|
c3 = tmp;
|
|
throw tmp31;
|
|
}
|
|
}
|
|
};
|
|
|
|
export const _asyncOptionalChain = function _asyncOptionalChain(arg0) {
|
|
const self = this;
|
|
const apply = closure_1.apply;
|
|
if (typeof apply === "unknown") {
|
|
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
|
} else {
|
|
applyArgumentsResult = apply(self, arguments);
|
|
}
|
|
return applyArgumentsResult;
|
|
};
|