Index: runtime/vm/dart_api_impl.cc |
diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc |
index ff628394146695e41eaba62d2a1ff6699da0a638..00b6e6577fcc0e4160ab4b727cb460db5aa862b0 100644 |
--- a/runtime/vm/dart_api_impl.cc |
+++ b/runtime/vm/dart_api_impl.cc |
@@ -185,11 +185,17 @@ static RawInstance* GetMapInstance(Zone* zone, const Object& obj) { |
static bool IsCompiletimeErrorObject(Zone* zone, const Object& obj) { |
+#if defined(DART_PRECOMPILED_RUNTIME) |
+ // All compile-time errors were handled at snapshot generation time and |
+ // compiletime_error_class was removed. |
+ return false; |
+#else |
Isolate* I = Thread::Current()->isolate(); |
const Class& error_class = |
Class::Handle(zone, I->object_store()->compiletime_error_class()); |
ASSERT(!error_class.IsNull()); |
return (obj.GetClassId() == error_class.id()); |
+#endif |
} |