diff --git a/src/node_snapshotable.cc b/src/node_snapshotable.cc index de398ab6261d88..40971cf8fd28b3 100644 --- a/src/node_snapshotable.cc +++ b/src/node_snapshotable.cc @@ -866,6 +866,7 @@ void SnapshotData::ToFile(FILE* out) const { const std::vector sink = ToBlob(); size_t num_written = fwrite(sink.data(), sink.size(), 1, out); CHECK_EQ(num_written, 1); + CHECK_EQ(fflush(out), 0); } const SnapshotData* SnapshotData::FromEmbedderWrapper(