27 lines
942 B
JavaScript
27 lines
942 B
JavaScript
// Module ID: 1097
|
|
// Function ID: 1098
|
|
// Name: setActiveSpanInBrowser
|
|
// Dependencies: [817]
|
|
|
|
// Module 1097 (setActiveSpanInBrowser)
|
|
const require = arg1;
|
|
const dependencyMap = arg6;
|
|
Object.defineProperty(arg5, Symbol.toStringTag, { value: "Module" });
|
|
arg5.setActiveSpanInBrowser = function setActiveSpanInBrowser(end) {
|
|
let obj = activeSpan(currentScope[0]);
|
|
activeSpan = obj.getActiveSpan();
|
|
if (activeSpan !== end) {
|
|
let tmpResult = tmp(tmp2[0]);
|
|
currentScope = tmpResult.getCurrentScope();
|
|
const _Proxy = Proxy;
|
|
obj = { apply: null };
|
|
obj[0] = function 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;
|
|
tmpResult = tmp(tmp2[0]);
|
|
let result = tmpResult._INTERNAL_setSpanForScope(currentScope, end);
|
|
}
|
|
};
|