Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
96 lines
2.6 KiB
JavaScript
96 lines
2.6 KiB
JavaScript
// Module ID: 4417
|
|
// Function ID: 4418
|
|
// Name: _initialize
|
|
// Dependencies: [5, 4371]
|
|
|
|
// Module 4417 (_initialize)
|
|
import "asyncGeneratorStep";
|
|
|
|
const NitroModules = fn(4371).NitroModules;
|
|
let closure_1 = NitroModules.createHybridObject("RiveRuntime");
|
|
let asyncGeneratorStep = function _initialize() {
|
|
const self = this;
|
|
const tmp = asyncGeneratorStep(async (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 {
|
|
c2 = 1;
|
|
c3 = 1;
|
|
const obj4 = { value: tmp4.initialize(), done: false };
|
|
return obj4;
|
|
}
|
|
} else if (arg0 === 1) {
|
|
c3 = 3;
|
|
throw value;
|
|
} else if (arg0 === 2) {
|
|
c3 = 3;
|
|
const obj = { value, done: true };
|
|
return obj;
|
|
} else if (tmp4.isInitialized) {
|
|
c3 = 3;
|
|
return { value: "HermesInternal", done: null };
|
|
} else {
|
|
const initError = tmp4.initError;
|
|
c0 = initError;
|
|
if (initError == null) {
|
|
c0 = "Unknown error";
|
|
}
|
|
const _HermesInternal = HermesInternal;
|
|
const error = new Error("Rive initialization failed: " + c0);
|
|
throw error;
|
|
}
|
|
} catch (tmp15) {
|
|
c3 = tmp;
|
|
throw tmp15;
|
|
}
|
|
}
|
|
});
|
|
asyncGeneratorStep = tmp;
|
|
const apply = tmp.apply;
|
|
if (typeof apply === "unknown") {
|
|
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
|
} else {
|
|
applyArgumentsResult = apply(self, arguments);
|
|
}
|
|
return applyArgumentsResult;
|
|
};
|
|
|
|
export const RiveRuntime = {
|
|
initialize() {
|
|
const self = this;
|
|
const apply = asyncGeneratorStep.apply;
|
|
if (typeof apply === "unknown") {
|
|
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
|
} else {
|
|
applyArgumentsResult = apply(self, arguments);
|
|
}
|
|
return applyArgumentsResult;
|
|
},
|
|
getStatus() {
|
|
const obj = { isInitialized: closure_1.isInitialized, error: null };
|
|
const initError = closure_1.initError;
|
|
obj.error = initError;
|
|
return obj;
|
|
}
|
|
};
|