decord/source/909_weakMap.js
2026-07-29 08:29:29 +00:00

36 lines
990 B
JavaScript

// Module ID: 909
// Function ID: 910
// Name: weakMap
// Dependencies: [822, 848, 887]
// Module 909 (weakMap)
import setupIntegration from "setupIntegration";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const weakMap = new WeakMap();
export const functionToStringIntegration = setupIntegration.defineIntegration(() => ({
name: "FunctionToString",
setupOnce() {
try {
const _Function = Function;
Function.prototype.toString = function() {
const items = [...arguments];
const originalFunction = callback(822).getOriginalFunction(this);
const obj = callback(822);
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);
}
}));