()
| 517 | } |
| 518 | |
| 519 | function waitForDrain() { |
| 520 | const { promise, resolve, reject } = PromiseWithResolvers(); |
| 521 | ArrayPrototypePush(waiters, { __proto__: null, resolve, reject }); |
| 522 | installListeners(); |
| 523 | return promise; |
| 524 | } |
| 525 | |
| 526 | function isWritable() { |
| 527 | // Duck-typed streams may not have these properties -- treat missing |
no test coverage detected