(port, addPortSequence)
| 19 | |
| 20 | class EventCache { |
| 21 | constructor(port, addPortSequence) { |
| 22 | this.port = port; |
| 23 | this.addPortSequence = addPortSequence; |
| 24 | this.cache = []; |
| 25 | this.push = this.push.bind(this); |
| 26 | this.port.onMessage.addListener(this.push); |
| 27 | } |
| 28 | |
| 29 | push(event) { |
| 30 | this.cache.push(event); |
nothing calls this directly
no outgoing calls
no test coverage detected