Skip to content

stream: fix Writable instanceof for subclasses

Rodrigo Muino Tomonari requested to merge github/fork/addaleax/writable-x into master

The current custom instanceof for Writable subclasses previously returned false positives for instances of other subclasses of Writable because it was inherited by these subclasses.

Fixes: https://github.com/nodejs/node/issues/14943

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

stream

Merge request reports

Loading