({ aborted, reason, port })
| 449 | } |
| 450 | |
| 451 | [kDeserialize]({ aborted, reason, port }) { |
| 452 | if (aborted) { |
| 453 | this[kAborted] = aborted; |
| 454 | this[kReason] = reason; |
| 455 | return; |
| 456 | } |
| 457 | |
| 458 | port.onmessage = ({ data }) => { |
| 459 | abortSignal(this, data); |
| 460 | port.close(); |
| 461 | port.onmessage = undefined; |
| 462 | }; |
| 463 | // The receiving port, by itself, should never keep the event loop open. |
| 464 | // The unref() has to be called *after* setting the onmessage handler. |
| 465 | port.unref(); |
| 466 | } |
| 467 | } |
| 468 | |
| 469 | converters.AbortSignal = createInterfaceConverter('AbortSignal', AbortSignal.prototype); |
nothing calls this directly
no test coverage detected