decord/source/13009_getInternalSlots.js
2026-07-21 06:55:02 +00:00

24 lines
554 B
JavaScript

// Module ID: 13009
// Function ID: 98991
// Name: getInternalSlots
// Dependencies: []
// Module 13009 (getInternalSlots)
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) => {
arg0[arg1] = {};
return arg0;
}, {}));
const result = weakMap.set(arg0, obj);
value = obj;
}
return value;
};
const weakMap = new WeakMap();