decord/source/7409_initAndBind.js

34 lines
1.1 KiB
JavaScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 7409
// Function ID: 7410
2026-07-29 08:29:29 +00:00
// Name: initAndBind
2026-08-05 07:35:12 +00:00
// Dependencies: [7375, 7347, 7374]
2026-07-29 08:29:29 +00:00
2026-08-05 07:35:12 +00:00
// Module 7409 (initAndBind)
2026-07-29 08:29:29 +00:00
const require = arg1;
const dependencyMap = arg6;
arg5.initAndBind = function initAndBind(arg0, debug) {
if (true === debug.debug) {
2026-08-05 07:35:12 +00:00
const obj = require(7347) /* consoleSandbox */;
if (require(7375) /* __SENTRY_DEBUG__ */.DEBUG_BUILD) {
2026-07-29 08:29:29 +00:00
const logger = obj.logger;
logger.enable();
} else {
obj.consoleSandbox(() => {
console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.");
});
}
}
2026-08-05 07:35:12 +00:00
const currentScope = require(7374) /* getClient */.getCurrentScope();
2026-07-29 08:29:29 +00:00
currentScope.update(debug.initialScope);
const obj4 = new arg0(debug);
2026-08-05 07:35:12 +00:00
const obj2 = require(7374) /* getClient */;
const currentScope1 = require(7374) /* getClient */.getCurrentScope();
2026-07-29 08:29:29 +00:00
currentScope1.setClient(obj4);
obj4.init();
return obj4;
};
arg5.setCurrentClient = function setCurrentClient(arg0) {
2026-08-05 07:35:12 +00:00
const currentScope = require(7374) /* getClient */.getCurrentScope();
2026-07-29 08:29:29 +00:00
currentScope.setClient(arg0);
};