()
| 66 | } |
| 67 | |
| 68 | async getResponseBody() { |
| 69 | if (this.responseBody) { return this.responseBody; } |
| 70 | return this.responseBody = await new Promise(res=>{ |
| 71 | this.bodyPort.onmessage = e => { |
| 72 | this.hasResponseBody = true; |
| 73 | res(e.data); |
| 74 | }; |
| 75 | this.bodyPort.postMessage(null); |
| 76 | }); |
| 77 | } |
| 78 | |
| 79 | sendResponse() { |
| 80 | this.responsePort.postMessage({ |
no test coverage detected