You would do:

```js
this.eventHandlers = Object.create(null);
this.eventHandlers.complete = [];
...
if (!this.eventHandlers[eventName])
  throw ...
this.eventHandlers[eventName].push(callback);
```