96 lines
2.6 KiB
TypeScript
96 lines
2.6 KiB
TypeScript
// Module ID: 4249
|
|
// Function ID: 4250
|
|
// Name: _openURL
|
|
// Dependencies: [5, 4250, 8377, 1896, 2]
|
|
// Exports: default
|
|
|
|
// Module 4249 (_openURL)
|
|
import closure_2 from "asyncGeneratorStep" /* 5 */;
|
|
|
|
const require = arg1;
|
|
function _openURL() {
|
|
const self = this;
|
|
const tmp = callback((arg0, arg1) => {
|
|
closure_0 = arg0;
|
|
closure_1 = arg1;
|
|
c3 = 0;
|
|
c4 = 0;
|
|
return (function*(arg0, arg1) {
|
|
if (c4 === 2) {
|
|
c4 = 3;
|
|
HermesBuiltin.throwTypeError();
|
|
} else if (tmp4 === 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 {
|
|
c4 = 2;
|
|
if (0 === c3) {
|
|
if (arg0 === 1) {
|
|
c4 = 3;
|
|
throw arg1;
|
|
} else if (arg0 === 2) {
|
|
c4 = 3;
|
|
obj = { value: null, done: true };
|
|
obj[0] = arg1;
|
|
return obj;
|
|
} else {
|
|
closure_2 = tmp2;
|
|
callback(paths[1]).default(callback);
|
|
c3 = 1;
|
|
c4 = 1;
|
|
obj1 = { value: null, done: false };
|
|
obj1[0] = callback(paths[3])(paths[2], paths.paths);
|
|
return obj1;
|
|
}
|
|
} else if (arg0 === 1) {
|
|
c4 = 3;
|
|
throw arg1;
|
|
} else if (arg0 === 2) {
|
|
c4 = 3;
|
|
const obj2 = { value: null, done: true };
|
|
obj2[0] = arg1;
|
|
return obj2;
|
|
} else {
|
|
obj = { skipExtensionCheck: null, analyticsLocations: null };
|
|
obj[0] = paths;
|
|
obj[1] = [];
|
|
arg1.default(callback, obj);
|
|
c4 = 3;
|
|
return { value: "HermesInternal", done: null };
|
|
}
|
|
} catch (tmp15) {
|
|
c4 = tmp;
|
|
throw tmp15;
|
|
}
|
|
}
|
|
})();
|
|
});
|
|
closure_3 = tmp;
|
|
const apply = tmp.apply;
|
|
if (typeof apply === "unknown") {
|
|
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
|
} else {
|
|
applyArgumentsResult = apply(self, arguments);
|
|
}
|
|
return applyArgumentsResult;
|
|
}
|
|
const result = require("set").fileFinishedImporting("lib/openURL.tsx");
|
|
|
|
export default function openURL() {
|
|
const self = this;
|
|
const apply = _openURL.apply;
|
|
if (typeof apply === "unknown") {
|
|
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
|
} else {
|
|
applyArgumentsResult = apply(self, arguments);
|
|
}
|
|
return applyArgumentsResult;
|
|
};
|