()
| 410 | } |
| 411 | |
| 412 | [kTransfer]() { |
| 413 | validateThisAbortSignal(this); |
| 414 | const aborted = this.aborted; |
| 415 | if (aborted) { |
| 416 | const reason = this.reason; |
| 417 | return { |
| 418 | data: { aborted, reason }, |
| 419 | deserializeInfo: 'internal/abort_controller:ClonedAbortSignal', |
| 420 | }; |
| 421 | } |
| 422 | |
| 423 | const { port1, port2 } = this[kCloneData]; |
| 424 | this[kCloneData] = undefined; |
| 425 | |
| 426 | this.addEventListener('abort', () => { |
| 427 | port1.postMessage(this.reason); |
| 428 | port1.close(); |
| 429 | }, { once: true }); |
| 430 | |
| 431 | return { |
| 432 | data: { port: port2 }, |
| 433 | deserializeInfo: 'internal/abort_controller:ClonedAbortSignal', |
| 434 | }; |
| 435 | } |
| 436 | |
| 437 | [kTransferList]() { |
| 438 | if (!this.aborted) { |
nothing calls this directly
no test coverage detected