Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
137 lines
4.6 KiB
JavaScript
137 lines
4.6 KiB
JavaScript
// Module ID: 779
|
|
// Function ID: 780
|
|
// Dependencies: [686]
|
|
// Exports: addMetadataToStackFrames, getFilenameToMetadataMap, getMetadataForUrl, stripMetadataFromStackFrames
|
|
|
|
// Module 779
|
|
import _mod686 from "module_686" /* 686 */;
|
|
|
|
require = arg1;
|
|
const dependencyMap = arg6;
|
|
Object.defineProperty(arg5, Symbol.toStringTag, { value: "Module" });
|
|
const map = new Map();
|
|
const set = new Set();
|
|
|
|
export const addMetadataToStackFrames = function addMetadataToStackFrames(arg0, exception) {
|
|
closure_0 = arg0;
|
|
exception = exception.exception;
|
|
if (exception != null) {
|
|
const values = exception.values;
|
|
if (values != null) {
|
|
let item = values.forEach((stacktrace) => {
|
|
stacktrace = stacktrace.stacktrace;
|
|
if (stacktrace != null) {
|
|
const frames = stacktrace.frames;
|
|
if (frames != null) {
|
|
const item = frames.forEach((filename) => {
|
|
if (filename.filename) {
|
|
if (!filename.module_metadata) {
|
|
(function ensureMetadataStacksAreParsed(fn) {
|
|
if (closure_1_0(686).GLOBAL_OBJ._sentryModuleMetadata) {
|
|
const _Object = Object;
|
|
const keys = Object.keys(closure_1_0(686).GLOBAL_OBJ._sentryModuleMetadata);
|
|
for (const item10026 of keys) {
|
|
let tmp11 = item10026;
|
|
let tmp16 = closure_1_0(686).GLOBAL_OBJ._sentryModuleMetadata[item10026];
|
|
let obj = set;
|
|
if (!set.has(item10026)) {
|
|
let addResult = obj.add(tmp11);
|
|
let obj2 = arg0(tmp11);
|
|
let reversed = obj2.reverse();
|
|
for (const item10050 of reversed) {
|
|
if (item10050.filename) {
|
|
let result = closure_1_2.set(tmp22.filename, tmp16);
|
|
obj3.return();
|
|
break;
|
|
}
|
|
continue;
|
|
}
|
|
}
|
|
continue;
|
|
}
|
|
}
|
|
})(closure_1_0);
|
|
value = map.get(filename.filename);
|
|
if (value) {
|
|
filename.module_metadata = value;
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
};
|
|
export const getFilenameToMetadataMap = function getFilenameToMetadataMap(fn) {
|
|
const obj = {};
|
|
if (_mod686.GLOBAL_OBJ._sentryModuleMetadata) {
|
|
const _Object = Object;
|
|
const keys = Object.keys(_mod686.GLOBAL_OBJ._sentryModuleMetadata);
|
|
for (const item10026 of keys) {
|
|
let tmp15 = _mod686.GLOBAL_OBJ._sentryModuleMetadata[item10026];
|
|
let obj2 = arg0(item10026);
|
|
let reversed = obj2.reverse();
|
|
for (const item10043 of reversed) {
|
|
if (item10043.filename) {
|
|
obj[tmp19.filename] = tmp15;
|
|
obj3.return();
|
|
break;
|
|
}
|
|
continue;
|
|
}
|
|
continue;
|
|
}
|
|
return obj;
|
|
} else {
|
|
return obj;
|
|
}
|
|
};
|
|
export const getMetadataForUrl = function getMetadataForUrl(fn, arg1) {
|
|
(function ensureMetadataStacksAreParsed(fn) {
|
|
if (closure_1_0(686).GLOBAL_OBJ._sentryModuleMetadata) {
|
|
const _Object = Object;
|
|
const keys = Object.keys(closure_1_0(686).GLOBAL_OBJ._sentryModuleMetadata);
|
|
for (const item10026 of keys) {
|
|
let tmp11 = item10026;
|
|
let tmp16 = closure_1_0(686).GLOBAL_OBJ._sentryModuleMetadata[item10026];
|
|
let obj = set;
|
|
if (!set.has(item10026)) {
|
|
let addResult = obj.add(tmp11);
|
|
let obj2 = arg0(tmp11);
|
|
let reversed = obj2.reverse();
|
|
for (const item10050 of reversed) {
|
|
if (item10050.filename) {
|
|
let result = closure_1_2.set(tmp22.filename, tmp16);
|
|
obj3.return();
|
|
break;
|
|
}
|
|
continue;
|
|
}
|
|
}
|
|
continue;
|
|
}
|
|
}
|
|
})(fn);
|
|
return map.get(arg1);
|
|
};
|
|
export const stripMetadataFromStackFrames = function stripMetadataFromStackFrames(exception) {
|
|
exception = exception.exception;
|
|
if (exception != null) {
|
|
const values = exception.values;
|
|
if (values != null) {
|
|
let item = values.forEach((stacktrace) => {
|
|
stacktrace = stacktrace.stacktrace;
|
|
if (stacktrace != null) {
|
|
const frames = stacktrace.frames;
|
|
if (frames != null) {
|
|
const item = frames.forEach((item) => {
|
|
delete tmp[tmp2];
|
|
});
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
};
|