Files
node/lib
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-14 13:37:12 -07:00
2016-09-07 16:29:41 -07:00
2016-10-14 13:38:56 +00:00
2016-10-04 12:17:32 -04:00
2016-10-04 12:17:32 -04:00
2016-10-04 12:17:32 -04:00
2016-08-10 23:41:28 +02:00
2016-10-11 12:41:42 -07:00
2016-10-04 12:17:32 -04:00
2016-10-04 12:17:32 -04:00