diff --git a/engine/src/flutter/snapshotter/main.cc b/engine/src/flutter/snapshotter/main.cc index 9ca4a6c751..9bd640ac58 100644 --- a/engine/src/flutter/snapshotter/main.cc +++ b/engine/src/flutter/snapshotter/main.cc @@ -213,6 +213,8 @@ int CreateSnapshot(const ftl::CommandLine& command_line) { std::cout << file << "\n"; } } else { + DART_CHECK_VALID(Dart_FinalizeLoading(false)); + // The script has been loaded, generate a snapshot. std::vector snapshot_blob = CreateSnapshot();