decord/source/761_mapCacheSet.js

21 lines
418 B
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 761
// Function ID: 762
2026-07-20 16:05:17 +00:00
// Name: mapCacheSet
2026-07-29 08:29:29 +00:00
// Dependencies: [757]
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
// Module 761 (mapCacheSet)
2026-08-24 06:08:38 +00:00
import getMapData from "getMapData" /* 757 */;
2026-07-20 16:05:17 +00:00
export default function mapCacheSet(arg0, arg1) {
const self = this;
2026-08-24 06:08:38 +00:00
const obj = getMapData(this, arg0);
2026-07-20 16:05:17 +00:00
const result = obj.set(arg0, arg1);
let num = 1;
if (obj.size == obj.size) {
num = 0;
}
self.size = this.size + num;
return self;
};