Index: src/debug/debug.cc |
diff --git a/src/debug/debug.cc b/src/debug/debug.cc |
index 09fe2fb90a3859983d643f66e2cc5754ed783420..8e0554c51c273ea419fcb7c7e933aa581e8fad4e 100644 |
--- a/src/debug/debug.cc |
+++ b/src/debug/debug.cc |
@@ -1382,8 +1382,8 @@ bool Debug::PrepareFunctionForBreakPoints(Handle<SharedFunctionInfo> shared) { |
void Debug::RecordAsyncFunction(Handle<JSGeneratorObject> generator_object) { |
if (last_step_action() <= StepOut) return; |
+ if (!generator_object->function()->shared()->is_async()) return; |
DCHECK(!has_suspended_generator()); |
- DCHECK(generator_object->function()->shared()->is_async()); |
thread_local_.suspended_generator_ = *generator_object; |
ClearStepping(); |
} |