decord/source/13185_getInternalSlots.js

25 lines
610 B
JavaScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 13185
// Function ID: 101529
2026-07-20 16:05:17 +00:00
// Name: getInternalSlots
// Dependencies: []
2026-07-24 07:16:23 +00:00
// Module 13185 (getInternalSlots)
2026-07-20 16:05:17 +00:00
arg5.default = function getInternalSlots(arg0) {
let items = arg1;
if (undefined === arg1) {
items = [];
}
let value = weakMap.get(arg0);
if (!value) {
const _Object = Object;
const obj = Object.create(null, items.reduce((arg0, arg1) => {
2026-07-23 10:11:24 +00:00
arg0[arg1] = { enumerable: false, writable: true, configurable: true };
2026-07-20 16:05:17 +00:00
return arg0;
}, {}));
const result = weakMap.set(arg0, obj);
value = obj;
}
return value;
};
const weakMap = new WeakMap();