decord/source/738_mapCacheSet.js

19 lines
390 B
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 738
2026-07-25 08:10:48 +00:00
// Function ID: 8787
2026-07-20 16:05:17 +00:00
// Name: mapCacheSet
2026-07-23 10:11:24 +00:00
// Dependencies: [734]
2026-07-20 16:05:17 +00:00
// Module 738 (mapCacheSet)
export default function mapCacheSet(arg0, arg1) {
const self = this;
2026-07-23 10:11:24 +00:00
const obj = require(734) /* 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;
};