Skip to content

fs: check start option more strict in createWriteStream

Use checkPosition function to check the start option that passed into fs.createWriteStream more strictly, and be the same as the start option that passed into fs.createReadStream.

https://github.com/nodejs/node/blob/2e613a9c301165d121b19b86e382860323abc22f/lib/internal/fs/streams.js#L39-L50

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading