Skip to content
Commit Detail

Commit adc8f24

Author
James M Snell <jasnell@gmail.com> 2024-04-22 16:08:08 -0700
Parents
35f34fe
Tree
cce7991
Hold strong refs in certain streams Writer/Reader methods

In some edge cases, if the Writer/Reader is the only thing remaining
holding a strong reference to a WritableStream or ReadableStream,
the calls to `close()`, `abort()`, `cancel()`, etc can cause the
Writer/Reader to drop it's strong reference in mid operation, leading
to issues. Let's defensively hold an additional strong reference while
the operations are pending

Files changed