Files
discord-decomp/_bundle/Module195.js
T
2026-11-01 12:12:55 +02:00

70 lines
1.5 KiB
JavaScript

// Metro module 195 (f196).
import { hasNativeConstructor } from "./Module196";
import { polyfillGlobal } from "./Module123";
import * as _Module197 from "./Module197";
import { HermesBuiltin, $createGenerator } from "../_hermes/prelude";
let r11;
try {
r11 = hasNativeConstructor(function() {
let c12202_0 = 0;
return $createGenerator(function() {
const r0 = c12202_0;
if (r0 === 2) {
c12202_0 = 3;
HermesBuiltin.throwTypeError("Generator functions may not be called on executing generators");
throw new Error("unreachable");
}
const value = arguments[1];
const r3 = arguments[0];
if (r0 === 3) {
if (r3 === 1) {
throw value;
}
if (r3 === 2) {
return {
value,
done: true
};
}
return {
value: void 0,
done: true
};
}
L7: {
try {
c12202_0 = 2;
if (r3 === 1) {
c12202_0 = 3;
throw value;
}
if (r3 === 2) {
c12202_0 = 3;
break L7;
}
c12202_0 = 3;
} catch (r16) {
c12202_0 = 3;
throw r16;
}
return {
value: void 0,
done: true
};
}
return {
value,
done: true
};
});
}, "GeneratorFunction");
} catch ($e) {
r11 = false;
}
if (!r11) {
polyfillGlobal("regeneratorRuntime", () => {
delete global["regeneratorRuntime"];
return _Module197;
});
}