Index: runtime/vm/object_store.cc |
diff --git a/runtime/vm/object_store.cc b/runtime/vm/object_store.cc |
index e0bf805809b29ac8f6d8ef9533bf79694eb76301..fe22d30635e8f549c3c99a499f5fe9be8131b1b3 100644 |
--- a/runtime/vm/object_store.cc |
+++ b/runtime/vm/object_store.cc |
@@ -35,6 +35,7 @@ ObjectStore::ObjectStore() |
int32x4_type_(Type::null()), |
float64x2_type_(Type::null()), |
string_type_(Type::null()), |
+ syntax_error_class_(Class::null()), |
future_class_(Class::null()), |
completer_class_(Class::null()), |
stream_iterator_class_(Class::null()), |
@@ -243,6 +244,10 @@ void ObjectStore::InitKnownObjects() { |
cls = internal_lib.LookupClass(Symbols::Symbol()); |
set_symbol_class(cls); |
+ const Library& core_lib = Library::Handle(core_library()); |
+ cls = core_lib.LookupClass(Symbols::SyntaxError()); |
+ set_syntax_error_class(cls); |
+ |
// Cache the core private functions used for fast instance of checks. |
simple_instance_of_function_ = |
PrivateObjectLookup(Symbols::_simpleInstanceOf()); |