decord/source/6439_weakMap.js

36 lines
925 B
JavaScript
Raw Normal View History

2026-07-30 10:14:41 +00:00
// Module ID: 6439
// Function ID: 6440
2026-07-29 08:29:29 +00:00
// Name: weakMap
2026-07-30 10:14:41 +00:00
// Dependencies: [6371, 6392, 6421]
2026-07-29 08:29:29 +00:00
2026-07-30 10:14:41 +00:00
// Module 6439 (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-07-30 10:14:41 +00:00
const originalFunction = callback(6371).getOriginalFunction(this);
const obj = callback(6371);
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);
}
}));