(chunk)
| 593 | } |
| 594 | |
| 595 | writeSync(chunk) { |
| 596 | if (this.#isClosedOrAborted()) return false; |
| 597 | if (!this.#broadcast[kCanWrite]()) return false; |
| 598 | const converted = |
| 599 | toUint8Array(chunk); |
| 600 | if (this.#broadcast[kWrite]([converted])) { |
| 601 | this.#totalBytes += TypedArrayPrototypeGetByteLength(converted); |
| 602 | return true; |
| 603 | } |
| 604 | return false; |
| 605 | } |
| 606 | |
| 607 | writevSync(chunks) { |
| 608 | if (!ArrayIsArray(chunks)) { |
no test coverage detected