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

20 lines
501 B
JavaScript

// Module ID: 1049
// Function ID: 1050
// Name: weakMap
// Dependencies: []
// Module 1049 (weakMap)
Object.defineProperty(arg5, Symbol.toStringTag, { value: "Module" });
const weakMap = new WeakMap();
arg5.initUnique = function initUnique(metric, InteractionManager) {
try {
if (!weakMap.get(metric)) {
const tmp5 = new InteractionManager();
const result = obj.set(metric, tmp5);
}
return weakMap.get(metric);
} catch (err) {
tmp = new tmp();
return tmp;
}
};