Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
35 lines
1.2 KiB
JavaScript
35 lines
1.2 KiB
JavaScript
// Module ID: 12831
|
|
// Function ID: 12832
|
|
// Dependencies: [12825, 12828]
|
|
// Exports: addGlobalUnhandledRejectionInstrumentationHandler
|
|
|
|
// Module 12831
|
|
import _mod12825 from "module_12825" /* 12825 */;
|
|
import _mod12828 from "module_12828" /* 12828 */;
|
|
|
|
require = arg1;
|
|
const dependencyMap = arg6;
|
|
function instrumentUnhandledRejection() {
|
|
onunhandledrejection = _mod12828.GLOBAL_OBJ.onunhandledrejection;
|
|
_mod12828.GLOBAL_OBJ.onunhandledrejection = function(arg0) {
|
|
_mod12825.triggerHandlers("unhandledrejection", arg0);
|
|
if (!onunhandledrejection) {
|
|
return !onunhandledrejection;
|
|
} else {
|
|
const self = this;
|
|
const apply = onunhandledrejection.apply;
|
|
if (typeof apply === "unknown") {
|
|
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
|
} else {
|
|
applyArgumentsResult = apply(self, arguments);
|
|
}
|
|
}
|
|
};
|
|
_mod12828.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__ = true;
|
|
}
|
|
let onunhandledrejection = null;
|
|
|
|
export const addGlobalUnhandledRejectionInstrumentationHandler = function addGlobalUnhandledRejectionInstrumentationHandler(arg0) {
|
|
_mod12825.addHandler("unhandledrejection", arg0);
|
|
_mod12825.maybeInstrument("unhandledrejection", instrumentUnhandledRejection);
|
|
};
|