decord/source/1073_setActiveSpanInBrowser.js

29 lines
994 B
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 1073
2026-07-25 08:10:48 +00:00
// Function ID: 12316
2026-07-20 16:05:17 +00:00
// Name: setActiveSpanInBrowser
2026-07-23 10:11:24 +00:00
// Dependencies: [794]
2026-07-20 16:05:17 +00:00
// Module 1073 (setActiveSpanInBrowser)
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.setActiveSpanInBrowser = function setActiveSpanInBrowser(end) {
2026-07-23 10:11:24 +00:00
let obj = activeSpan(currentScope[0]);
activeSpan = obj.getActiveSpan();
2026-07-20 16:05:17 +00:00
if (activeSpan !== end) {
2026-07-23 10:11:24 +00:00
currentScope = activeSpan(currentScope[0]).getCurrentScope();
2026-07-20 16:05:17 +00:00
const _Proxy = Proxy;
obj = {
apply(arg0, arg1, arg2) {
const result = activeSpan(currentScope[0])._INTERNAL_setSpanForScope(currentScope, activeSpan);
return Reflect.apply(arg0, arg1, arg2);
}
};
const proxy = new Proxy(end.end, obj);
end.end = proxy;
2026-07-23 10:11:24 +00:00
const obj2 = activeSpan(currentScope[0]);
let result = activeSpan(currentScope[0])._INTERNAL_setSpanForScope(currentScope, end);
const obj4 = activeSpan(currentScope[0]);
2026-07-20 16:05:17 +00:00
}
};