stream: ensure state existed when getting property
Ensure state has initialized when getting property from prototype.
On the other hand, it wouldn't throw TypeError
when accessing
readableLength
, readableHighWaterMark
and e.g. from
stream.Readable.prototype
.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines