mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Merge pull request #1512 from abarth/no_stacks
Don't dump stacks when app fails to start
This commit is contained in:
commit
1151cfb75c
@ -80,8 +80,10 @@ void DartController::DidLoadMainLibrary(String name) {
|
||||
CHECK(!LogIfError(Dart_FinalizeLoading(true)));
|
||||
|
||||
Dart_Handle library = Dart_LookupLibrary(StringToDart(dart_state(), name));
|
||||
CHECK(!LogIfError(library));
|
||||
CHECK(!DartInvokeAppField(library, ToDart("main"), 0, nullptr));
|
||||
if (LogIfError(library))
|
||||
exit(1);
|
||||
if (DartInvokeAppField(library, ToDart("main"), 0, nullptr))
|
||||
exit(1);
|
||||
}
|
||||
|
||||
void DartController::DidLoadSnapshot() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user