decord/source/__polyfill/01xxx/module_1318.js
github-actions f0f877e8ce chore: update source for alpha 347.1
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
2026-09-15 14:23:42 +00:00

60 lines
1.6 KiB
JavaScript

// Module ID: 1318
// Function ID: 1319
// Dependencies: [1281, 1315, 1282, 1316]
// Module 1318
import _mod1281 from "module_1281" /* 1281 */;
import _mod1282 from "module_1282" /* 1282 */;
import callBoundIntrinsic from "callBoundIntrinsic" /* 1315 */;
import _mod1316 from "module_1316" /* 1316 */;
let tmp = _mod1281("%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 _mod1282("Side channel does not contain " + _mod1316(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;
});