decord/source/7659_initAndBind.js
2026-08-25 06:04:03 +00:00

37 lines
1.1 KiB
JavaScript

// Module ID: 7659
// Function ID: 7660
// Name: initAndBind
// Dependencies: [7625, 7597, 7624]
// Module 7659 (initAndBind)
import consoleSandbox from "consoleSandbox" /* 7597 */;
import getClient from "getClient" /* 7624 */;
import __SENTRY_DEBUG__ from "__SENTRY_DEBUG__" /* 7625 */;
require = arg1;
const dependencyMap = arg6;
arg5.initAndBind = function initAndBind(arg0, debug) {
if (true === debug.debug) {
const obj = consoleSandbox;
if (__SENTRY_DEBUG__.DEBUG_BUILD) {
const logger = obj.logger;
logger.enable();
} else {
obj.consoleSandbox(() => {
console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.");
});
}
}
const currentScope = getClient.getCurrentScope();
currentScope.update(debug.initialScope);
const obj4 = new arg0(debug);
const obj2 = getClient;
const currentScope1 = getClient.getCurrentScope();
currentScope1.setClient(obj4);
obj4.init();
return obj4;
};
arg5.setCurrentClient = function setCurrentClient(arg0) {
const currentScope = getClient.getCurrentScope();
currentScope.setClient(arg0);
};