decord/source/6433_initAndBind.js
2026-07-31 08:44:05 +00:00

33 lines
1.1 KiB
JavaScript

// Module ID: 6433
// Function ID: 6434
// Name: initAndBind
// Dependencies: [6399, 6371, 6398]
// Module 6433 (initAndBind)
const require = arg1;
const dependencyMap = arg6;
arg5.initAndBind = function initAndBind(arg0, debug) {
if (true === debug.debug) {
const obj = require(6371) /* consoleSandbox */;
if (require(6399) /* __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 = require(6398) /* getClient */.getCurrentScope();
currentScope.update(debug.initialScope);
const obj4 = new arg0(debug);
const obj2 = require(6398) /* getClient */;
const currentScope1 = require(6398) /* getClient */.getCurrentScope();
currentScope1.setClient(obj4);
obj4.init();
return obj4;
};
arg5.setCurrentClient = function setCurrentClient(arg0) {
const currentScope = require(6398) /* getClient */.getCurrentScope();
currentScope.setClient(arg0);
};