2026-07-20 16:05:17 +00:00
|
|
|
// Module ID: 789
|
2026-07-25 08:10:48 +00:00
|
|
|
// Function ID: 8917
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: processEvent
|
2026-07-23 10:11:24 +00:00
|
|
|
// Dependencies: [57, 790, 791, 794]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: debugSymbolicatorIntegration
|
|
|
|
|
|
|
|
|
|
// Module 789 (processEvent)
|
2026-07-23 10:11:24 +00:00
|
|
|
import _slicedToArray from "_slicedToArray";
|
|
|
|
|
|
|
|
|
|
const require = arg1;
|
2026-07-20 16:05:17 +00:00
|
|
|
function processEvent(arg0, arg1) {
|
2026-07-23 10:11:24 +00:00
|
|
|
let closure_0 = arg0;
|
|
|
|
|
let closure_1 = arg1;
|
2026-07-20 16:05:17 +00:00
|
|
|
return fn(this, undefined, undefined, function*() {
|
|
|
|
|
let isErrorLikeResult;
|
|
|
|
|
let tmp46;
|
|
|
|
|
let tmp47;
|
2026-07-23 10:11:24 +00:00
|
|
|
const exception = outer1_0.exception;
|
|
|
|
|
const outer1_2 = exception;
|
2026-07-20 16:05:17 +00:00
|
|
|
let values;
|
|
|
|
|
if (null !== exception) {
|
2026-07-23 10:11:24 +00:00
|
|
|
if (undefined !== outer1_2) {
|
|
|
|
|
values = outer1_2.values;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (values) {
|
2026-07-23 10:11:24 +00:00
|
|
|
if (obj.isErrorLike(outer1_1.originalException)) {
|
|
|
|
|
let originalException = outer1_1.originalException;
|
2026-07-20 16:05:17 +00:00
|
|
|
const items = [];
|
|
|
|
|
if (obj5.isErrorLike(originalException)) {
|
|
|
|
|
do {
|
|
|
|
|
let arr = items.push(originalException);
|
|
|
|
|
let cause = originalException.cause;
|
2026-07-23 10:11:24 +00:00
|
|
|
let tmp29 = callback;
|
|
|
|
|
let tmp30 = dependencyMap;
|
|
|
|
|
let obj6 = callback(790);
|
2026-07-20 16:05:17 +00:00
|
|
|
originalException = cause;
|
|
|
|
|
isErrorLikeResult = obj6.isErrorLike(cause);
|
|
|
|
|
} while (isErrorLikeResult);
|
|
|
|
|
}
|
|
|
|
|
const entries = items.entries();
|
|
|
|
|
const tmp34 = entries[Symbol.iterator]();
|
|
|
|
|
while (tmp34 !== undefined) {
|
2026-07-23 10:11:24 +00:00
|
|
|
let tmp44 = outer2_2;
|
|
|
|
|
let tmp45 = outer2_2(tmp35, 2);
|
2026-07-20 16:05:17 +00:00
|
|
|
[tmp46, tmp47] = tmp45;
|
2026-07-23 10:11:24 +00:00
|
|
|
let tmp48 = outer2_6;
|
|
|
|
|
let tmp49 = callback;
|
|
|
|
|
let tmp50 = dependencyMap;
|
|
|
|
|
let obj7 = callback(790);
|
|
|
|
|
let tmp51 = yield outer2_6(tmp47.stack, obj7.getFramesToPop(tmp47));
|
2026-07-20 16:05:17 +00:00
|
|
|
if (tmp51) {
|
2026-07-23 10:11:24 +00:00
|
|
|
let tmp38 = outer2_7;
|
|
|
|
|
let tmp39 = outer1_0;
|
2026-07-20 16:05:17 +00:00
|
|
|
let tmp40 = tmp46;
|
|
|
|
|
let tmp41 = tmp51;
|
2026-07-23 10:11:24 +00:00
|
|
|
let tmp42 = outer2_7(outer1_0.exception.values[tmp46], tmp37);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
continue;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
obj5 = callback(790);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
return outer1_0;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
if (outer1_1.syntheticException) {
|
|
|
|
|
if (obj2.isErrorLike(outer1_1.syntheticException)) {
|
|
|
|
|
const obj4 = yield outer2_6(outer1_1.syntheticException.stack, callback(790).getFramesToPop(outer1_1.syntheticException));
|
|
|
|
|
if (outer1_0.exception) {
|
2026-07-20 16:05:17 +00:00
|
|
|
values = obj4;
|
|
|
|
|
if (obj4) {
|
2026-07-23 10:11:24 +00:00
|
|
|
values = outer1_0.exception.values;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
if (values) {
|
2026-07-23 10:11:24 +00:00
|
|
|
outer2_7(outer1_0.exception.values[0], obj4);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
if (tmp16) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const threads = outer1_0.threads;
|
2026-07-20 16:05:17 +00:00
|
|
|
values = undefined;
|
|
|
|
|
if (null !== threads) {
|
|
|
|
|
if (undefined !== threads) {
|
|
|
|
|
values = threads.values;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
let first;
|
|
|
|
|
if (null !== values) {
|
|
|
|
|
if (undefined !== values) {
|
|
|
|
|
first = values[0];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
let stacktrace;
|
|
|
|
|
if (null !== first) {
|
|
|
|
|
if (undefined !== first) {
|
|
|
|
|
stacktrace = first.stacktrace;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (stacktrace) {
|
|
|
|
|
tmp17.threads.values[0].stacktrace.frames = obj4.reverse();
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
tmp17 = outer1_0;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
tmp16 = outer1_0.threads && obj4;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
const obj3 = callback(790);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
obj2 = callback(790);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
function symbolicate(arg0) {
|
2026-07-23 10:11:24 +00:00
|
|
|
let closure_0 = arg0;
|
2026-07-20 16:05:17 +00:00
|
|
|
let num = 0;
|
|
|
|
|
if (arguments.length > 1) {
|
|
|
|
|
num = 0;
|
|
|
|
|
if (undefined !== arguments[1]) {
|
|
|
|
|
num = arguments[1];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return fn(this, undefined, undefined, function*() {
|
2026-07-23 10:11:24 +00:00
|
|
|
let obj = callback(num[2]);
|
|
|
|
|
const parseErrorStackResult = callback(num[2]).parseErrorStack(outer1_0);
|
|
|
|
|
const tmp2 = yield callback(num[2]).symbolicateStackTrace(parseErrorStackResult);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (tmp2) {
|
|
|
|
|
const tmp9 = "stack" in tmp3 ? tmp2.stack : tmp2;
|
|
|
|
|
const _Math = Math;
|
2026-07-23 10:11:24 +00:00
|
|
|
const bound = Math.max(outer1_1 - 1, 0);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (bound) {
|
|
|
|
|
let substr = arr.slice(bound);
|
|
|
|
|
} else {
|
|
|
|
|
substr = arr;
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
const tmp15 = yield (function convertReactNativeFramesToSentryFrames(substr) {
|
|
|
|
|
let closure_0 = substr;
|
|
|
|
|
return outer3_3(this, undefined, undefined, function*() {
|
2026-07-20 16:05:17 +00:00
|
|
|
if (obj) {
|
|
|
|
|
return obj.resume();
|
|
|
|
|
} else {
|
|
|
|
|
let self = this;
|
|
|
|
|
self = this;
|
2026-07-23 10:11:24 +00:00
|
|
|
return Promise.all(outer1_0.map((arg0) => {
|
|
|
|
|
let closure_0 = arg0;
|
2026-07-25 08:10:48 +00:00
|
|
|
return outer6_3(closure_0, undefined, undefined, /* F8929 */ function*() { ... });
|
2026-07-20 16:05:17 +00:00
|
|
|
}));
|
|
|
|
|
}
|
|
|
|
|
});
|
2026-07-23 10:11:24 +00:00
|
|
|
})(substr.filter((file) => {
|
2026-07-20 16:05:17 +00:00
|
|
|
file = file.file;
|
|
|
|
|
if (file) {
|
2026-07-23 10:11:24 +00:00
|
|
|
file = null === file.file.match(outer3_4);
|
2026-07-20 16:05:17 +00:00
|
|
|
const str = file.file;
|
|
|
|
|
}
|
|
|
|
|
return file;
|
|
|
|
|
}));
|
2026-07-23 10:11:24 +00:00
|
|
|
return yield callback(num[2]).fetchSourceContext(tmp15);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-07-23 10:11:24 +00:00
|
|
|
const debug = callback(num[3]).debug;
|
2026-07-20 16:05:17 +00:00
|
|
|
debug.error("React Native DevServer could not symbolicate the stack trace.");
|
|
|
|
|
return null;
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
const obj2 = callback(num[2]);
|
2026-07-20 16:05:17 +00:00
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
function replaceExceptionFramesInException(stacktrace, arr) {
|
|
|
|
|
stacktrace = undefined;
|
|
|
|
|
if (null != stacktrace) {
|
|
|
|
|
stacktrace = stacktrace.stacktrace;
|
|
|
|
|
}
|
|
|
|
|
if (stacktrace) {
|
|
|
|
|
stacktrace.stacktrace.frames = arr.reverse();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
let fn = this;
|
|
|
|
|
if (this) {
|
|
|
|
|
fn = this.__awaiter;
|
|
|
|
|
}
|
|
|
|
|
if (!fn) {
|
|
|
|
|
fn = (arg0, arg1, arg2, arg3) => {
|
|
|
|
|
let _Promise = arg2;
|
2026-07-23 10:11:24 +00:00
|
|
|
let closure_0 = arg0;
|
|
|
|
|
let closure_1 = arg1;
|
|
|
|
|
let closure_3 = arg3;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (!arg2) {
|
|
|
|
|
_Promise = Promise;
|
|
|
|
|
}
|
|
|
|
|
_Promise = new _Promise((arg0, arg1) => {
|
2026-07-23 10:11:24 +00:00
|
|
|
let closure_0 = arg0;
|
|
|
|
|
let closure_1 = arg1;
|
2026-07-20 16:05:17 +00:00
|
|
|
function fulfilled(arg0) {
|
|
|
|
|
step(iter.next(arg0));
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
let iter = function rejected(arg0) {
|
2026-07-20 16:05:17 +00:00
|
|
|
step(iter.throw(arg0));
|
|
|
|
|
};
|
|
|
|
|
function step(iter) {
|
|
|
|
|
if (iter.done) {
|
2026-07-23 10:11:24 +00:00
|
|
|
callback(iter.value);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-07-23 10:11:24 +00:00
|
|
|
(function adopt(value) {
|
2026-07-20 16:05:17 +00:00
|
|
|
let tmp = value;
|
2026-07-23 10:11:24 +00:00
|
|
|
let closure_0 = value;
|
|
|
|
|
if (!(value instanceof fulfilled)) {
|
|
|
|
|
const prototype = fulfilled.prototype;
|
|
|
|
|
tmp = new fulfilled((arg0) => {
|
|
|
|
|
arg0(closure_0);
|
2026-07-20 16:05:17 +00:00
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
2026-07-23 10:11:24 +00:00
|
|
|
})(iter.value).then(fulfilled, iter);
|
|
|
|
|
const promise = (function adopt(value) {
|
2026-07-20 16:05:17 +00:00
|
|
|
let tmp = value;
|
2026-07-23 10:11:24 +00:00
|
|
|
let closure_0 = value;
|
|
|
|
|
if (!(value instanceof fulfilled)) {
|
|
|
|
|
const prototype = fulfilled.prototype;
|
|
|
|
|
tmp = new fulfilled((arg0) => {
|
|
|
|
|
arg0(closure_0);
|
2026-07-20 16:05:17 +00:00
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
2026-07-23 10:11:24 +00:00
|
|
|
})(iter.value);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
let items = closure_1;
|
|
|
|
|
if (!closure_1) {
|
2026-07-20 16:05:17 +00:00
|
|
|
items = [];
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
iter = iter.apply(closure_0, items);
|
2026-07-20 16:05:17 +00:00
|
|
|
step(iter.next());
|
|
|
|
|
});
|
|
|
|
|
return _Promise;
|
|
|
|
|
};
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
let items = ["ReactNativeRenderer-dev\\.js$", "MessageQueue\\.js$"];
|
2026-07-20 16:05:17 +00:00
|
|
|
const regExp = new RegExp(items.join("|"));
|
|
|
|
|
|
2026-07-23 10:11:24 +00:00
|
|
|
export const debugSymbolicatorIntegration = function debugSymbolicatorIntegration() {
|
2026-07-20 16:05:17 +00:00
|
|
|
return {
|
|
|
|
|
name: "DebugSymbolicator",
|
|
|
|
|
setupOnce() {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
processEvent
|
|
|
|
|
};
|
|
|
|
|
};
|