decord/source/516_getSideChannelWeakMap.js

97 lines
2.5 KiB
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 516
// Function ID: 6605
// Name: getSideChannelWeakMap
2026-07-23 10:11:24 +00:00
// Dependencies: [517, 551, 518, 552, 554]
2026-07-20 16:05:17 +00:00
// Module 516 (getSideChannelWeakMap)
2026-07-23 10:11:24 +00:00
const tmp = require("getEvalledConstructor")("%WeakMap%", true);
let closure_2 = tmp;
let closure_3 = require("callBoundIntrinsic")("WeakMap.prototype.get", true);
let closure_4 = require("callBoundIntrinsic")("WeakMap.prototype.set", true);
let closure_5 = require("callBoundIntrinsic")("WeakMap.prototype.has", true);
let closure_6 = require("callBoundIntrinsic")("WeakMap.prototype.delete", true);
2026-07-20 16:05:17 +00:00
if (tmp) {
function getSideChannelWeakMap() {
const obj = {
assert(arg0) {
if (!obj.has(arg0)) {
2026-07-23 10:11:24 +00:00
let tmp3 = outer1_0(outer1_1[2]);
2026-07-20 16:05:17 +00:00
const prototype = tmp3.prototype;
2026-07-23 10:11:24 +00:00
tmp3 = new tmp3("Side channel does not contain " + outer1_0(outer1_1[3])(arg0));
2026-07-20 16:05:17 +00:00
throw tmp3;
}
},
delete: function _delete(arg0) {
if (obj) {
if (arg0) {
2026-07-23 10:11:24 +00:00
if (closure_0) {
return outer1_6(closure_0, arg0);
2026-07-20 16:05:17 +00:00
}
}
return false;
}
2026-07-23 10:11:24 +00:00
if (outer1_0(outer1_1[4])) {
2026-07-20 16:05:17 +00:00
if (store) {
return store.delete(arg0);
}
}
},
get(arg0) {
if (obj) {
if (arg0) {
if ("object" === typeof arg0) {
if (closure_0) {
2026-07-23 10:11:24 +00:00
let value = outer1_3(closure_0, arg0);
2026-07-20 16:05:17 +00:00
}
return value;
}
}
}
value = store;
if (store) {
value = store.get(arg0);
}
},
has(arg0) {
if (obj) {
if (arg0) {
if ("object" === typeof arg0) {
if (closure_0) {
2026-07-23 10:11:24 +00:00
let hasItem = outer1_5(closure_0, arg0);
2026-07-20 16:05:17 +00:00
}
return hasItem;
}
}
}
hasItem = !tmp3;
if (!!store) {
hasItem = store.has(arg0);
}
},
set(arg0, arg1) {
if (obj) {
if (arg0) {
2026-07-23 10:11:24 +00:00
if (!closure_0) {
2026-07-20 16:05:17 +00:00
const prototype = obj.prototype;
const tmp11 = new obj();
2026-07-23 10:11:24 +00:00
closure_0 = tmp11;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
outer1_4(closure_0, arg0, arg1);
2026-07-20 16:05:17 +00:00
}
}
2026-07-23 10:11:24 +00:00
if (outer1_0(outer1_1[4])) {
2026-07-20 16:05:17 +00:00
if (!store) {
2026-07-23 10:11:24 +00:00
store = outer1_0(outer1_1[4])();
2026-07-20 16:05:17 +00:00
}
const result = store.set(arg0, arg1);
}
}
};
return obj;
}
} else {
2026-07-23 10:11:24 +00:00
getSideChannelWeakMap = require("getSideChannelMap");
2026-07-20 16:05:17 +00:00
}
export default getSideChannelWeakMap;