Mark libraries as loaded before creating the script snapshot. (flutter/engine#3023)

Fixes #5814.
This commit is contained in:
Ryan Macnak
2016-09-13 10:46:39 -07:00
committed by GitHub
parent 0736739f57
commit a1b268babc

View File

@@ -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<char> snapshot_blob = CreateSnapshot();