decord/source/1114_processEvent.js
2026-07-29 08:29:29 +00:00

133 lines
3.8 KiB
JavaScript

// Module ID: 1114
// Function ID: 1115
// Name: processEvent
// Dependencies: [1002]
// Module 1114 (processEvent)
const require = arg1;
const dependencyMap = arg6;
function processEvent(tags, originalException) {
originalException = undefined;
if (null != originalException) {
originalException = originalException.originalException;
}
let tmp2;
if (originalException) {
let originalException1;
if (null != originalException) {
originalException1 = originalException.originalException;
}
tmp2 = originalException1;
}
const obj = { turbo_module: null, fabric: null, react_native_version: null, expo: null };
obj[0] = require(1002) /* isHermesEnabled */.isTurboModuleEnabled();
const obj2 = require(1002) /* isHermesEnabled */;
obj[1] = require(1002) /* isHermesEnabled */.isFabricEnabled();
const obj3 = require(1002) /* isHermesEnabled */;
obj[2] = require(1002) /* isHermesEnabled */.getReactNativeVersion();
const obj4 = require(1002) /* isHermesEnabled */;
obj[3] = require(1002) /* isHermesEnabled */.isExpo();
const obj5 = require(1002) /* isHermesEnabled */;
if (obj6.isHermesEnabled()) {
obj.js_engine = "hermes";
let tmp4Result = tmp4(1002);
const hermesVersion = tmp4Result.getHermesVersion();
if (hermesVersion) {
obj.hermes_version = hermesVersion;
}
obj.hermes_debug_info = !(function isEventWithHermesBytecodeFrames(exception) {
exception = exception.exception;
let items;
if (null !== exception) {
if (undefined !== exception) {
items = exception.values;
}
}
if (!items) {
const threads = exception.threads;
let values;
if (null !== threads) {
if (undefined !== threads) {
values = threads.values;
}
}
items = values;
}
if (!items) {
items = [];
}
const iter = items[Symbol.iterator]();
while (iter !== undefined) {
let stacktrace = iter.next().stacktrace;
let tmp2 = stacktrace;
let frames;
if (null !== stacktrace) {
let tmp3 = stacktrace;
if (undefined !== tmp2) {
let tmp4 = stacktrace;
frames = tmp2.frames;
}
}
if (!frames) {
frames = [];
}
let tmp5 = frames;
let tmp6 = frames;
for (const item10023 of frames) {
if (undefined === item10023.platform) {
let tmp8 = item10023;
if (1 === tmp7.lineno) {
let tmp9 = obj;
obj.return();
let tmp10 = iter;
iter.return();
let flag = true;
return true;
}
}
continue;
}
continue;
}
return false;
})(tags);
} else {
let jsEngine;
if (null != tmp2) {
jsEngine = tmp2.jsEngine;
}
if (jsEngine) {
obj.js_engine = tmp2.jsEngine;
}
}
if ("hermes" === obj.js_engine) {
const _Object = Object;
tags.tags = Object.assign({ hermes: true }, tags.tags);
}
let componentStack;
if (null != tmp2) {
componentStack = tmp2.componentStack;
}
if (componentStack) {
obj.component_stack = tmp2.componentStack;
}
tmp4Result = tmp4(1002);
const expoGoVersion = tmp4Result.getExpoGoVersion();
if (expoGoVersion) {
obj.expo_go_version = expoGoVersion;
}
obj6 = require(1002) /* isHermesEnabled */;
const expoSdkVersion = require(1002) /* isHermesEnabled */.getExpoSdkVersion();
if (expoSdkVersion) {
obj.expo_sdk_version = expoSdkVersion;
}
tags.contexts = Object.assign({ react_native_context: obj }, tags.contexts);
return tags;
}
arg5.reactNativeInfoIntegration = () => ({
name: "ReactNativeInfo",
setupOnce() {
},
processEvent
});