Mark libraries as loaded before creating the script snapshot. (flutter/engine#3023)
Fixes #5814.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user