diff --git a/src/node_snapshotable.cc b/src/node_snapshotable.cc index 1a19f44bec8198..d4f45bf31019ea 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(