decord/source/6308_instrumentError.js

28 lines
1,022 B
JavaScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 6308
// Function ID: 56727
2026-07-23 10:11:24 +00:00
// Name: instrumentError
2026-07-25 08:10:48 +00:00
// Dependencies: [6309, 6312]
2026-07-23 10:11:24 +00:00
2026-07-25 08:10:48 +00:00
// Module 6308 (instrumentError)
2026-07-23 10:11:24 +00:00
const require = arg1;
const dependencyMap = arg6;
function instrumentError() {
2026-07-25 08:10:48 +00:00
const onerror = require(6312) /* getGlobalSingleton */.GLOBAL_OBJ.onerror;
require(6312) /* getGlobalSingleton */.GLOBAL_OBJ.onerror = function(msg, url, line, column, error) {
2026-07-23 10:11:24 +00:00
outer1_0(outer1_1[0]).triggerHandlers("error", { column, error, line, msg, url });
let applyResult = !tmp2;
if (!!onerror) {
const self = this;
applyResult = onerror(...arguments);
}
return applyResult;
};
2026-07-25 08:10:48 +00:00
require(6312) /* getGlobalSingleton */.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__ = true;
2026-07-23 10:11:24 +00:00
}
let c2 = null;
arg5.addGlobalErrorInstrumentationHandler = function addGlobalErrorInstrumentationHandler(arg0) {
2026-07-25 08:10:48 +00:00
require(6309) /* addHandler */.addHandler("error", arg0);
const obj = require(6309) /* addHandler */;
require(6309) /* addHandler */.maybeInstrument("error", instrumentError);
2026-07-23 10:11:24 +00:00
};