Skip to content

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), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading