decord/source/761_mapCacheSet.js
2026-08-24 06:08:38 +00:00

20 lines
418 B
JavaScript

// Module ID: 761
// Function ID: 762
// Name: mapCacheSet
// Dependencies: [757]
// Module 761 (mapCacheSet)
import getMapData from "getMapData" /* 757 */;
export default function mapCacheSet(arg0, arg1) {
const self = this;
const obj = getMapData(this, arg0);
const result = obj.set(arg0, arg1);
let num = 1;
if (obj.size == obj.size) {
num = 0;
}
self.size = this.size + num;
return self;
};