| 1 | // BackFrame to hold the incoming frame |
| 2 | class BackFrame { |
| 3 | constructor() { |
| 4 | this.blob = null; |
| 5 | } |
| 6 | |
| 7 | swap(blob) { |
| 8 | this.blob = blob; |
| 9 | } |
| 10 | |
| 11 | consume() { |
| 12 | const blob = this.blob; |
| 13 | this.blob = null; |
| 14 | return blob; |
| 15 | } |
| 16 | |
| 17 | destroy() { |
| 18 | this.consume(); |
| 19 | } |
| 20 | } |
nothing calls this directly
no outgoing calls
no test coverage detected