decord/source/7850_weakMap.js

36 lines
936 B
JavaScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 7850
// Function ID: 7851
2026-07-29 08:29:29 +00:00
// Name: weakMap
2026-08-24 06:08:38 +00:00
// Dependencies: [7782, 7803, 7832]
2026-07-29 08:29:29 +00:00
2026-08-24 06:08:38 +00:00
// Module 7850 (weakMap)
import setupIntegration from "setupIntegration" /* 7832 */;
2026-07-29 08:29:29 +00:00
const weakMap = new WeakMap();
export const functionToStringIntegration = setupIntegration.defineIntegration(() => ({
name: "FunctionToString",
setupOnce() {
try {
const _Function = Function;
Function.prototype.toString = function() {
const items = [...arguments];
2026-08-24 06:08:38 +00:00
const originalFunction = callback(7782).getOriginalFunction(this);
const obj = callback(7782);
2026-07-29 08:29:29 +00:00
let self = this;
if (set.has(obj2.getClient())) {
self = this;
if (undefined !== originalFunction) {
self = originalFunction;
}
}
return toString.apply(self, items);
};
} catch (err) {
}
},
setup(arg0) {
const result = closure_3.set(arg0, true);
}
}));