27 lines
758 B
JavaScript
27 lines
758 B
JavaScript
// Metro module 849 (f850).
|
|
import { triggerHandlers, addHandler, maybeInstrument } from "./Module850";
|
|
import { GLOBAL_OBJ } from "./Module821";
|
|
let onerror;
|
|
const instrumentError = function instrumentError() {
|
|
onerror = GLOBAL_OBJ.onerror;
|
|
GLOBAL_OBJ.onerror = function(a0, a1, a2, a3, a4) {
|
|
triggerHandlers("error", {
|
|
column: a3,
|
|
error: a4,
|
|
line: a2,
|
|
msg: a0,
|
|
url: a1
|
|
});
|
|
return !!onerror && onerror.apply(this, arguments);
|
|
};
|
|
GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__ = true;
|
|
};
|
|
Object.defineProperty(exports, Symbol.toStringTag, {
|
|
value: "Module"
|
|
});
|
|
onerror = null;
|
|
export function addGlobalErrorInstrumentationHandler(a0) {
|
|
addHandler("error", a0);
|
|
maybeInstrument("error", instrumentError);
|
|
}
|