Index: runtime/vm/precompiler.cc |
diff --git a/runtime/vm/precompiler.cc b/runtime/vm/precompiler.cc |
index 0bb66695f31193e5d1a3aa19f8339f1f2eaf3d4c..48a14f88c12ecf69a2338763a0f78c2c685ccb79 100644 |
--- a/runtime/vm/precompiler.cc |
+++ b/runtime/vm/precompiler.cc |
@@ -764,7 +764,7 @@ void Precompiler::AddField(const Field& field) { |
if (FLAG_trace_precompiler) { |
THR_Print("Precompiling initializer for %s\n", field.ToCString()); |
} |
- ASSERT(!Dart::IsRunningPrecompiledCode()); |
+ ASSERT(Dart::snapshot_kind() != Snapshot::kAppNoJIT); |
field.SetStaticValue(Instance::Handle(field.SavedInitialStaticValue())); |
const Function& initializer = |
Function::Handle(CompileStaticInitializer(field)); |