docs: function getEvent(context, eventName) {
    if (!eventsMap.has(context)) {
      eventsMap.set(context, {});
    }
    const events = eventsMap.get(context);
    if (!events[eventName]) {
      events[eventName] = {
        listeners: [],
        meta: new WeakMap()
      };
    }
    return events[eventName];
  }