decord/source/7528_weakMap.js

36 lines
925 B
JavaScript
Raw Normal View History

2026-08-08 06:10:11 +00:00
// Module ID: 7528
// Function ID: 7529
2026-07-29 08:29:29 +00:00
// Name: weakMap
2026-08-08 06:10:11 +00:00
// Dependencies: [7460, 7481, 7510]
2026-07-29 08:29:29 +00:00
2026-08-08 06:10:11 +00:00
// Module 7528 (weakMap)
2026-07-29 08:29:29 +00:00
import setupIntegration from "setupIntegration";
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-08 06:10:11 +00:00
const originalFunction = callback(7460).getOriginalFunction(this);
const obj = callback(7460);
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);
}
}));