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

24 lines
561 B
JavaScript

// Metro module 1013 (f1014).
export function isHardCrash(a0) {
let r12;
if (typeof a0 !== "string" && "exception" in a0) {
const exception = a0.exception;
r12 = (exception !== null ? exception !== void 0 ? exception.values : void 0 : void 0) ? a0.exception.values : [];
} else {
r12 = [];
}
for (const item of r12) {
if (!item.mechanism) {
continue;
}
if (item.mechanism.handled !== false) {
continue;
}
if (item.mechanism.type !== "onerror") {
continue;
}
return true;
}
return false;
}