- [ ] `error` can be emitted after `close` - [ ] `write after end` - [ ] `invalid argument` - [ ] `open` can be emitted after `error` - [ ] does not use `errorOrDestroy ` on `close()` - [ ] should not emit `error`, use `errorOrDestroy` or callback. - [ ] `_write` does an unnecessary check for `instanceof Buffer` (https://github.com/nodejs/node/pull/29043). - [ ] calling write before fd and closing, will cause write to happen on destroyed stream (i.e. flush after destroy) - [ ] don't use `end()` instead of `destroy()`. Keep track of pendingcb instead. (related issue https://github.com/nodejs/node/issues/29044) - [ ] emit 'close' on destroy - [ ] emit 'close' close error
errorcan be emitted afterclosewrite after endinvalid argumentopencan be emitted aftererrorerrorOrDestroyonclose()error, useerrorOrDestroyor callback._writedoes an unnecessary check forinstanceof Buffer(fs: unecessary argument validation #29043).end()instead ofdestroy(). Keep track of pendingcb instead. (related issue stream: Writable should not invoke _destroy while pending ops #29044)