Index: runtime/vm/kernel_reader.cc |
diff --git a/runtime/vm/kernel_reader.cc b/runtime/vm/kernel_reader.cc |
index f2923d5623bcea97b86d82bf68734d46bad99900..f4aff8ee028ee564e2b44140719353221b718a7d 100644 |
--- a/runtime/vm/kernel_reader.cc |
+++ b/runtime/vm/kernel_reader.cc |
@@ -521,7 +521,9 @@ void KernelReader::ReadProcedure(const dart::Library& library, |
// no special modifier |
break; |
} |
- ASSERT(kernel_procedure->function()->async_marker() == FunctionNode::kSync); |
+ ASSERT(kernel_procedure->function()->async_marker() == FunctionNode::kSync || |
+ kernel_procedure->function()->async_marker() == |
+ FunctionNode::kSyncYielding); |
if (native_name != NULL) { |
function.set_native_name(*native_name); |