(reason)
| 158 | } |
| 159 | |
| 160 | async cancel(reason) { |
| 161 | try { |
| 162 | this[kState].port.postMessage({ type: 'error', value: reason }); |
| 163 | } catch (error) { |
| 164 | if (error instanceof DOMException) { |
| 165 | // eslint-disable-next-line no-ex-assign |
| 166 | error = new CloneableDOMException(error.message, error.name); |
| 167 | } |
| 168 | this[kState].port.postMessage({ type: 'error', value: error }); |
| 169 | throw error; |
| 170 | } finally { |
| 171 | this[kState].port.close(); |
| 172 | } |
| 173 | } |
| 174 | } |
| 175 | |
| 176 | class CrossRealmTransformWritableSink { |
nothing calls this directly
no test coverage detected