decord/source/757_stackSet.js

34 lines
836 B
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 757
2026-07-24 07:16:23 +00:00
// Function ID: 8815
2026-07-20 16:05:17 +00:00
// Name: stackSet
2026-07-23 10:11:24 +00:00
// Dependencies: [725, 724, 709]
2026-07-20 16:05:17 +00:00
// Module 757 (stackSet)
export default function stackSet(arg0, arg1) {
const self = this;
let __data__ = this.__data__;
let obj = __data__;
2026-07-23 10:11:24 +00:00
if (__data__ instanceof require(725) /* ListCache */) {
2026-07-20 16:05:17 +00:00
__data__ = __data__.__data__;
2026-07-23 10:11:24 +00:00
if (require(724) /* getNative */) {
2026-07-20 16:05:17 +00:00
if (__data__.length >= 199) {
2026-07-23 10:11:24 +00:00
let tmp5 = require(709) /* MapCache */;
2026-07-20 16:05:17 +00:00
const prototype = tmp5.prototype;
tmp5 = new tmp5(__data__);
self.__data__ = tmp5;
obj = tmp5;
}
}
const items = [arg0, arg1];
__data__.push(items);
const sum = __data__.size + 1;
__data__.size = sum;
self.size = sum;
return self;
}
const result = obj.set(arg0, arg1);
self.size = obj.size;
return self;
};