decord/source/885_weakMap.js

40 lines
1.2 KiB
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 885
2026-07-25 08:10:48 +00:00
// Function ID: 9796
2026-07-20 16:05:17 +00:00
// Name: weakMap
2026-07-23 10:11:24 +00:00
// Dependencies: [799, 825, 863]
2026-07-20 16:05:17 +00:00
// Module 885 (weakMap)
2026-07-23 10:11:24 +00:00
import setupIntegration from "setupIntegration";
2026-07-22 07:54:56 +00:00
2026-07-20 16:05:17 +00:00
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const weakMap = new WeakMap();
2026-07-23 10:11:24 +00:00
export const functionToStringIntegration = setupIntegration.defineIntegration(function _functionToStringIntegration() {
2026-07-20 16:05:17 +00:00
return {
name: "FunctionToString",
setupOnce() {
2026-07-23 10:11:24 +00:00
const outer1_2 = Function.prototype.toString;
2026-07-20 16:05:17 +00:00
Function.prototype.toString = function() {
2026-07-23 10:11:24 +00:00
const originalFunction = outer2_0(outer2_1[0]).getOriginalFunction(this);
const obj = outer2_0(outer2_1[0]);
2026-07-20 16:05:17 +00:00
let self = this;
2026-07-23 10:11:24 +00:00
if (outer2_3.has(obj2.getClient())) {
2026-07-20 16:05:17 +00:00
self = this;
if (undefined !== originalFunction) {
self = originalFunction;
}
}
const length = arguments.length;
const array = new Array(length);
for (let num = 0; num < length; num = num + 1) {
array[num] = arguments[num];
}
2026-07-23 10:11:24 +00:00
return outer2_2.apply(self, array);
2026-07-20 16:05:17 +00:00
};
},
setup(arg0) {
2026-07-23 10:11:24 +00:00
const result = outer1_3.set(arg0, true);
2026-07-20 16:05:17 +00:00
}
};
});