2026-09-05 10:56:28 +00:00
|
|
|
// Module ID: 8114
|
|
|
|
|
// Function ID: 8115
|
2026-07-29 08:29:29 +00:00
|
|
|
// Name: LimitedMap
|
|
|
|
|
// Dependencies: [2]
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-05 10:56:28 +00:00
|
|
|
// Module 8114 (LimitedMap)
|
2026-08-24 06:08:38 +00:00
|
|
|
import set from "set" /* 2 */;
|
|
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
class LimitedMap extends Map {
|
|
|
|
|
constructor(arg0) {
|
|
|
|
|
tmp = new LimitedMap(new.target);
|
|
|
|
|
// ThrowIfThisInitialized (0x7c)
|
|
|
|
|
tmp.maxSize = global;
|
|
|
|
|
return tmp;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
set(arg0, arg1) {
|
|
|
|
|
self = this;
|
|
|
|
|
if (this.size >= this.maxSize) {
|
|
|
|
|
iter = self.keys();
|
|
|
|
|
deleteResult = self.delete(iter.next().value);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
return super.set(global, require);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
let closure_0 = LimitedMap.prototype;
|
2026-08-24 06:08:38 +00:00
|
|
|
const result = set.fileFinishedImporting("lib/LimitedMap.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
export default LimitedMap;
|