decord/source/__polyfill/14xxx/module_14227.js
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

25 lines
587 B
JavaScript

// Module ID: 14227
// Function ID: 14228
// Dependencies: []
// Exports: default
// Module 14227
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;
};