decord/source/797_unwrapScopeFromWeakRef.js

45 lines
1.5 KiB
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 797
2026-07-24 07:16:23 +00:00
// Function ID: 8984
2026-07-20 16:05:17 +00:00
// Name: unwrapScopeFromWeakRef
2026-07-23 10:11:24 +00:00
// Dependencies: [798, 799]
2026-07-20 16:05:17 +00:00
// Module 797 (unwrapScopeFromWeakRef)
2026-07-23 10:11:24 +00:00
const require = arg1;
const dependencyMap = arg6;
2026-07-20 16:05:17 +00:00
function unwrapScopeFromWeakRef(_sentryIsolationScope) {
if (_sentryIsolationScope) {
if ("object" === typeof obj) {
if ("deref" in obj) {
if ("function" === typeof obj.deref) {
return obj.deref();
}
}
}
return obj;
}
}
Object.defineProperty(arg5, Symbol.toStringTag, { value: "Module" });
arg5.getCapturedScopesOnSpan = function getCapturedScopesOnSpan(_sentryScope) {
return { scope: _sentryScope._sentryScope, isolationScope: unwrapScopeFromWeakRef(_sentryScope._sentryIsolationScope) };
};
arg5.setCapturedScopesOnSpan = function setCapturedScopesOnSpan(arg0, arg1, arg2) {
if (arg0) {
2026-07-23 10:11:24 +00:00
let addNonEnumerableProperty = require;
let result1 = dependencyMap;
2026-07-20 16:05:17 +00:00
let num = 1;
let result = arg2;
2026-07-23 10:11:24 +00:00
const _WeakRef = require(798).GLOBAL_OBJ.WeakRef;
2026-07-20 16:05:17 +00:00
let tmp5 = _WeakRef;
if ("function" === typeof _WeakRef) {
const prototype = tmp5.prototype;
tmp5 = new tmp5(result);
result = obj.addNonEnumerableProperty(arg0, "_sentryIsolationScope", tmp5);
result1 = addNonEnumerableProperty(result1[num]);
addNonEnumerableProperty = result1.addNonEnumerableProperty;
num = addNonEnumerableProperty(arg0, "_sentryScope", arg1);
}
tmp5 = result;
2026-07-23 10:11:24 +00:00
obj = require(799) /* addNonEnumerableProperty */;
2026-07-20 16:05:17 +00:00
}
};