Skip to content

fs: extract start and end check into checkPosition

this.start and this.end in ReadStream meet the same conditions, extract their check into checkPosition function.

Maybe we can use it to check this.start in WriteStream too(but may need to do other works).

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading