Files
node/test/parallel
Anna Henningsen 7922830087 stream: fix Writable subclass instanceof checks
2a4b068aca introduced a regression in where checking
`instanceof` would fail for `Writable` subclasses inside the
subclass constructor, i.e. before `Writable()` was called.

Also, calling `null instanceof Writable` or
`undefined instanceof Writable` would fail due to accessing the
`_writableState` property of the target object.

This fixes these problems.

PR-URL: https://github.com/nodejs/node/pull/9088
Ref: https://github.com/nodejs/node/pull/8834#issuecomment-253640692
Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
2016-10-14 16:11:54 -05:00
..
2016-10-10 08:52:03 -07:00
2016-07-14 22:07:14 -04:00
2016-10-10 08:52:03 -07:00
2016-10-10 08:52:03 -07:00
2016-07-14 22:07:14 -04:00
2016-10-10 08:52:03 -07:00
2016-07-14 22:07:14 -04:00
2016-07-14 22:07:14 -04:00
2016-09-20 13:56:25 +03:00
2016-09-30 10:57:19 -07:00
2016-07-14 22:07:14 -04:00
2016-04-08 13:58:48 -07:00
2016-07-14 22:07:14 -04:00
2016-07-14 22:07:14 -04:00
2016-09-24 17:17:08 +02:00