Index: runtime/vm/isolate.cc |
diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc |
index 287079a210ea50d12b2dcf46614063172d513d23..42a4a8178cfa66c3f1789dc5d5f1c7cd9af482ee 100644 |
--- a/runtime/vm/isolate.cc |
+++ b/runtime/vm/isolate.cc |
@@ -1386,6 +1386,7 @@ void Isolate::Run() { |
void Isolate::AddClosureFunction(const Function& function) const { |
+ ASSERT(!Compiler::IsBackgroundCompilation()); |
GrowableObjectArray& closures = |
GrowableObjectArray::Handle(object_store()->closure_functions()); |
ASSERT(!closures.IsNull()); |