Merge pull request #1512 from abarth/no_stacks

Don't dump stacks when app fails to start
This commit is contained in:
Adam Barth 2015-10-08 10:00:35 -07:00
commit 1151cfb75c

View File

@ -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() {