decord/source/826_instrumentError.js

29 lines
1,006 B
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 826
2026-07-24 07:16:23 +00:00
// Function ID: 9229
2026-07-20 16:05:17 +00:00
// Name: instrumentError
2026-07-23 10:11:24 +00:00
// Dependencies: [827, 798]
2026-07-20 16:05:17 +00:00
// Module 826 (instrumentError)
2026-07-23 10:11:24 +00:00
const require = arg1;
const dependencyMap = arg6;
2026-07-20 16:05:17 +00:00
function instrumentError() {
2026-07-23 10:11:24 +00:00
const onerror = require(798).GLOBAL_OBJ.onerror;
require(798).GLOBAL_OBJ.onerror = function(msg, url, line, column, error) {
outer1_0(outer1_1[0]).triggerHandlers("error", { column, error, line, msg, url });
2026-07-20 16:05:17 +00:00
let applyResult = !tmp2;
if (!!onerror) {
const self = this;
applyResult = onerror(...arguments);
}
return applyResult;
};
2026-07-23 10:11:24 +00:00
require(798).GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__ = true;
2026-07-20 16:05:17 +00:00
}
Object.defineProperty(arg5, Symbol.toStringTag, { value: "Module" });
2026-07-23 10:11:24 +00:00
let c2 = null;
2026-07-20 16:05:17 +00:00
arg5.addGlobalErrorInstrumentationHandler = function addGlobalErrorInstrumentationHandler(arg0) {
2026-07-23 10:11:24 +00:00
require(827) /* addHandler */.addHandler("error", arg0);
const obj = require(827) /* addHandler */;
require(827) /* addHandler */.maybeInstrument("error", instrumentError);
2026-07-20 16:05:17 +00:00
};