From a1b268babc8e13877b475d98cbdb8fb1d6a35f6e Mon Sep 17 00:00:00 2001 From: Ryan Macnak Date: Tue, 13 Sep 2016 10:46:39 -0700 Subject: [PATCH] Mark libraries as loaded before creating the script snapshot. (flutter/engine#3023) Fixes #5814. --- engine/src/flutter/snapshotter/main.cc | 2 ++ 1 file changed, 2 insertions(+) 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();