26 lines
773 B
JavaScript
26 lines
773 B
JavaScript
// Metro module 732 (f733).
|
|
import * as _mapCacheClear from "./mapCacheClear";
|
|
import * as _mapCacheDelete from "./mapCacheDelete";
|
|
import * as _mapCacheGet from "./mapCacheGet";
|
|
import * as _mapCacheHas from "./mapCacheHas";
|
|
import * as _mapCacheSet from "./mapCacheSet";
|
|
const MapCache = function MapCache(a0) {
|
|
const r5 = a0 == null ? 0 : a0.length;
|
|
this.clear();
|
|
const r12 = 0 < r5;
|
|
let r13 = 0;
|
|
if (r12) {
|
|
do {
|
|
const r14 = a0[r13];
|
|
this.set(r14[0], r14[1]);
|
|
r13 = r13 + 1;
|
|
} while (r13 < r5);
|
|
}
|
|
};
|
|
MapCache.prototype.clear = _mapCacheClear;
|
|
MapCache.prototype.delete = _mapCacheDelete;
|
|
MapCache.prototype.get = _mapCacheGet;
|
|
MapCache.prototype.has = _mapCacheHas;
|
|
MapCache.prototype.set = _mapCacheSet;
|
|
module.exports = MapCache;
|