decord/source/__polyfill/01xxx/module_1319.js
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

60 lines
1.6 KiB
JavaScript

// Module ID: 1319
// Function ID: 1320
// Dependencies: [1282, 1316, 1283, 1317]
// Module 1319
import _mod1282 from "module_1282" /* 1282 */;
import _mod1283 from "module_1283" /* 1283 */;
import callBoundIntrinsic from "callBoundIntrinsic" /* 1316 */;
import _mod1317 from "module_1317" /* 1317 */;
let tmp = _mod1282("%Map%", true);
let closure_2 = tmp;
let closure_3 = callBoundIntrinsic("Map.prototype.get", true);
let closure_4 = callBoundIntrinsic("Map.prototype.set", true);
let closure_5 = callBoundIntrinsic("Map.prototype.has", true);
let closure_6 = callBoundIntrinsic("Map.prototype.delete", true);
let closure_7 = callBoundIntrinsic("Map.prototype.size", true);
export default tmp && (function getSideChannelMap() {
const obj = {
assert(arg0) {
if (!obj.has(arg0)) {
const tmp32 = new _mod1283("Side channel does not contain " + _mod1317(arg0));
throw tmp32;
}
},
delete(arg0) {
if (closure_0) {
if (0 === closure_7(closure_0)) {
closure_0 = undefined;
}
return closure_6(tmp, arg0);
} else {
return false;
}
},
get(arg0) {
if (closure_0) {
return closure_3(tmp, arg0);
}
},
has(arg0) {
let tmp = closure_0;
if (tmp) {
tmp = closure_5(closure_0, arg0);
}
return tmp;
},
set(arg0, arg1) {
let tmp = closure_0;
if (!closure_0) {
const tmp5 = new closure_2();
closure_0 = tmp5;
tmp = tmp5;
}
closure_4(tmp, arg0, arg1);
}
};
return obj;
});