Files
node/lib
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
..
2015-10-08 17:32:08 -07:00
2016-09-13 17:04:42 -07:00
2016-03-21 15:48:51 -07:00
2016-07-05 22:09:12 +02:00
2016-10-11 12:31:51 -04:00
2016-10-11 12:31:51 -04:00
2016-10-11 12:31:51 -04:00
2016-08-11 10:58:11 -04:00
2016-10-11 12:31:51 -04:00
2016-10-11 12:31:51 -04:00