decord/source/__polyfill/14xxx/module_14287.js
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

25 lines
587 B
JavaScript

// Module ID: 14287
// Function ID: 14288
// Dependencies: []
// Exports: default
// Module 14287
const weakMap = new WeakMap();
export default function getInternalSlots(arg0, arg1) {
let items = arg1;
if (undefined === arg1) {
items = [];
}
value = weakMap.get(arg0);
if (!value) {
const _Object = Object;
const obj2 = Object.create(null, items.reduce((acc, item) => {
acc[item] = { enumerable: false, writable: true, configurable: true };
return acc;
}, {}));
const result = weakMap.set(arg0, obj2);
value = obj2;
}
return value;
};