decord/source/__polyfill/14xxx/module_14254.js
github-actions 4f02868c60 chore: update source for alpha 346.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
2026-09-11 10:30:06 +00:00

25 lines
587 B
JavaScript

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