UNPKG

454 BJavaScriptView Raw
1"use strict";
2// Type-only circular import
3// eslint-disable-next-line import/no-cycle
4Object.defineProperty(exports, "__esModule", { value: true });
5exports.default = getInternalSlots;
6var internalSlotMap = new WeakMap();
7function getInternalSlots(x) {
8 var internalSlots = internalSlotMap.get(x);
9 if (!internalSlots) {
10 internalSlots = Object.create(null);
11 internalSlotMap.set(x, internalSlots);
12 }
13 return internalSlots;
14}