Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
124 lines
3.2 KiB
JavaScript
124 lines
3.2 KiB
JavaScript
// Module ID: 979
|
|
// Function ID: 980
|
|
// Dependencies: [867]
|
|
// Exports: reactNativeInfoIntegration
|
|
|
|
// Module 979
|
|
import _mod867 from "module_867" /* 867 */;
|
|
|
|
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: _mod867.isTurboModuleEnabled(), fabric: null, react_native_version: null, expo: null };
|
|
obj.fabric = _mod867.isFabricEnabled();
|
|
obj.react_native_version = _mod867.getReactNativeVersion();
|
|
obj.expo = _mod867.isExpo();
|
|
if (obj6.isHermesEnabled()) {
|
|
obj.js_engine = "hermes";
|
|
const hermesVersion = tmp4(867).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 values2;
|
|
if (null !== threads) {
|
|
if (undefined !== threads) {
|
|
values2 = threads.values;
|
|
}
|
|
}
|
|
items = values2;
|
|
}
|
|
if (!items) {
|
|
items = [];
|
|
}
|
|
const iter = items[Symbol.iterator]();
|
|
while (iter !== undefined) {
|
|
let stacktrace = iter.next().stacktrace;
|
|
let tmp2 = stacktrace;
|
|
let frames;
|
|
if (null !== stacktrace) {
|
|
if (undefined !== tmp2) {
|
|
frames = tmp2.frames;
|
|
}
|
|
}
|
|
if (!frames) {
|
|
frames = [];
|
|
}
|
|
for (const item10023 of frames) {
|
|
if (undefined === item10023.platform) {
|
|
if (1 === tmp7.lineno) {
|
|
obj.return();
|
|
iter.return();
|
|
let flag = true;
|
|
return true;
|
|
}
|
|
}
|
|
continue;
|
|
}
|
|
continue;
|
|
}
|
|
return false;
|
|
})(tags);
|
|
const tmp4Result = tmp4(867);
|
|
} 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;
|
|
}
|
|
obj6 = _mod867;
|
|
const expoGoVersion = _mod867.getExpoGoVersion();
|
|
if (expoGoVersion) {
|
|
obj.expo_go_version = expoGoVersion;
|
|
}
|
|
const tmp4Result3 = _mod867;
|
|
const expoSdkVersion = _mod867.getExpoSdkVersion();
|
|
if (expoSdkVersion) {
|
|
obj.expo_sdk_version = expoSdkVersion;
|
|
}
|
|
tags.contexts = Object.assign({ react_native_context: obj }, tags.contexts);
|
|
return tags;
|
|
}
|
|
|
|
export () => ({
|
|
name: "ReactNativeInfo",
|
|
setupOnce() {
|
|
|
|
},
|
|
processEvent
|
|
})
|