stream: fix Writable instanceof for subclasses
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), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
stream