74 lines
1.9 KiB
JavaScript
74 lines
1.9 KiB
JavaScript
// Module ID: 7899
|
|
// Function ID: 7900
|
|
// Name: _asyncNullishCoalesce2
|
|
// Dependencies: [5, 7900]
|
|
// Exports: _asyncNullishCoalesce
|
|
|
|
// Module 7899 (_asyncNullishCoalesce2)
|
|
import closure_2 from "asyncGeneratorStep" /* 5 */;
|
|
|
|
function _asyncNullishCoalesce2() {
|
|
const self = this;
|
|
const tmp = callback((arg0, arg1) => {
|
|
closure_0 = arg0;
|
|
closure_1 = arg1;
|
|
c2 = 0;
|
|
return (function*(arg0, arg1) {
|
|
if (c2 === 2) {
|
|
c2 = 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 {
|
|
c2 = 2;
|
|
if (arg0 === 1) {
|
|
c2 = 3;
|
|
throw arg1;
|
|
} else if (arg0 === 2) {
|
|
c2 = 3;
|
|
obj = { value: null, done: true };
|
|
obj[0] = arg1;
|
|
return obj;
|
|
} else {
|
|
obj = callback(table[1]);
|
|
c2 = 3;
|
|
obj1 = { value: null, done: true };
|
|
obj1[0] = obj._nullishCoalesce(callback, table);
|
|
return obj1;
|
|
}
|
|
} catch (tmp8) {
|
|
c2 = tmp;
|
|
throw tmp8;
|
|
}
|
|
}
|
|
})();
|
|
});
|
|
closure_3 = tmp;
|
|
const apply = tmp.apply;
|
|
if (typeof apply === "unknown") {
|
|
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
|
} else {
|
|
applyArgumentsResult = apply(self, arguments);
|
|
}
|
|
return applyArgumentsResult;
|
|
}
|
|
|
|
export const _asyncNullishCoalesce = function _asyncNullishCoalesce(arg0, arg1) {
|
|
const self = this;
|
|
const apply = _asyncNullishCoalesce2.apply;
|
|
if (typeof apply === "unknown") {
|
|
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
|
} else {
|
|
applyArgumentsResult = apply(self, arguments);
|
|
}
|
|
return applyArgumentsResult;
|
|
};
|