Index: runtime/vm/bootstrap.cc |
=================================================================== |
--- runtime/vm/bootstrap.cc (revision 11113) |
+++ runtime/vm/bootstrap.cc (working copy) |
@@ -6,6 +6,7 @@ |
#include "include/dart_api.h" |
+#include "vm/class_finalizer.h" |
#include "vm/compiler.h" |
#include "vm/dart_api_impl.h" |
#include "vm/object.h" |
@@ -69,7 +70,9 @@ |
String::Handle(script.Source()).ToCString()); |
} |
library.SetLoadInProgress(); |
- const Error& error = Error::Handle(Compiler::Compile(library, script)); |
+ // Do not tolerate malformed types in bootstrap scripts. |
+ const Error& error = Error::Handle( |
+ Compiler::Compile(library, script, ClassFinalizer::kGeneratingSnapshot)); |
if (error.IsNull()) { |
library.SetLoaded(); |
} else { |