Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index f4c21acd8952197384422f7a64c657e94de86991..80836374459ce0e540b9a5e64a7fa58d20fc202a 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -5947,7 +5947,8 @@ DebugInfo* SharedFunctionInfo::GetDebugInfo() { |
bool SharedFunctionInfo::HasDebugCode() { |
- return code()->kind() == Code::FUNCTION && code()->has_debug_break_slots(); |
+ return HasBytecodeArray() || |
+ (code()->kind() == Code::FUNCTION && code()->has_debug_break_slots()); |
} |