mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Do not show an assertion failure if Dart_FinalizeLoading returns an error while building a snapshot (flutter/engine#2584)
This might happen due to errors expected during development (e.g. a mistyped Dart class name)
This commit is contained in:
parent
c1b21af2c5
commit
a1ebcdeb94
@ -89,7 +89,8 @@ int main(int argc, const char* argv[]) {
|
||||
CHECK(args.size() == 1);
|
||||
LoadScript(args[0]);
|
||||
|
||||
CHECK(!LogIfError(Dart_FinalizeLoading(true)));
|
||||
if (LogIfError(Dart_FinalizeLoading(true)))
|
||||
return 1;
|
||||
|
||||
CHECK(command_line.HasSwitch(switches::kSnapshot));
|
||||
WriteSnapshot(command_line.GetSwitchValuePath(switches::kSnapshot));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user