Files
node/test/parallel
Anna Henningsen 8c4fab0a28 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:29:51 -05:00
..
2016-10-11 12:52:43 -04:00
2016-10-11 12:52:43 -04:00
2016-10-11 12:52:43 -04:00
2016-07-20 06:36:27 -05:00
2016-10-11 12:52:43 -04:00
2016-07-20 06:36:27 -05:00
2016-07-20 06:36:27 -05:00
2016-10-11 12:26:42 -04:00
2016-10-11 12:30:41 -04:00
2016-07-20 06:36:27 -05:00
2016-04-26 12:15:53 -07:00
2016-07-20 06:36:27 -05:00
2016-07-20 06:36:27 -05:00
2016-10-11 12:28:16 -04:00