UNPKG

@formatjs/intl-locale

Version:
23 lines (22 loc) 771 B
"use strict"; // Type-only circular import // eslint-disable-next-line import/no-cycle Object.defineProperty(exports, "__esModule", { value: true }); exports.default = getInternalSlots; var internalSlotMap = new WeakMap(); function getInternalSlots(x, internalSlotsList) { if (internalSlotsList === void 0) { internalSlotsList = []; } var internalSlots = internalSlotMap.get(x); if (!internalSlots) { internalSlots = Object.create(null, internalSlotsList.reduce(function (all, prop) { all[prop] = { enumerable: false, writable: true, configurable: true, }; return all; }, {})); internalSlotMap.set(x, internalSlots); } return internalSlots; }