decord/source/818_getAsyncContextStrategy.js

25 lines
929 B
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 818
2026-07-24 07:16:23 +00:00
// Function ID: 9139
2026-07-20 16:05:17 +00:00
// Name: getAsyncContextStrategy
2026-07-23 10:11:24 +00:00
// Dependencies: [802, 819]
2026-07-20 16:05:17 +00:00
// Module 818 (getAsyncContextStrategy)
2026-07-23 10:11:24 +00:00
const require = arg1;
const dependencyMap = arg6;
2026-07-20 16:05:17 +00:00
Object.defineProperty(arg5, Symbol.toStringTag, { value: "Module" });
arg5.getAsyncContextStrategy = function getAsyncContextStrategy(arg0) {
2026-07-23 10:11:24 +00:00
const sentryCarrier = require(802) /* getSentryCarrier */.getSentryCarrier(arg0);
2026-07-20 16:05:17 +00:00
if (sentryCarrier.acs) {
let acs = sentryCarrier.acs;
} else {
2026-07-23 10:11:24 +00:00
acs = require(819) /* getAsyncContextStack */.getStackAsyncContextStrategy();
const obj2 = require(819) /* getAsyncContextStack */;
2026-07-20 16:05:17 +00:00
}
return acs;
};
arg5.setAsyncContextStrategy = function setAsyncContextStrategy(acs) {
2026-07-23 10:11:24 +00:00
const mainCarrier = require(802) /* getSentryCarrier */.getMainCarrier();
const obj = require(802) /* getSentryCarrier */;
require(802) /* getSentryCarrier */.getSentryCarrier(mainCarrier).acs = acs;
2026-07-20 16:05:17 +00:00
};