decord/source/__polyfill/13xxx/module_13000.js
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

35 lines
962 B
JavaScript

// Module ID: 13000
// Function ID: 13001
// Dependencies: [12932, 12953, 12982]
// Module 13000
import setupIntegration from "module_12982" /* 12982 */;
const weakMap = new WeakMap();
export const functionToStringIntegration = setupIntegration.defineIntegration(() => ({
name: "FunctionToString",
setupOnce() {
toString = Function.prototype.toString;
try {
const _Function = Function;
Function.prototype.toString = function() {
const items = [...arguments];
const originalFunction = closure_1_0(12932).getOriginalFunction(this);
const obj = closure_1_0(12932);
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 = weakMap.set(arg0, true);
}
}));