Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index e7d4f793614c79425f48301b8095de7d49c05688..c9d47757bf7cd820d208f07c699408255701dd97 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -1382,8 +1382,10 @@ TEST(TestCodeFlushingIncrementalAbort) { |
// disabled. |
int position = 0; |
Handle<Object> breakpoint_object(Smi::FromInt(0), isolate); |
+ EnableDebugger(); |
isolate->debug()->SetBreakPoint(function, breakpoint_object, &position); |
isolate->debug()->ClearAllBreakPoints(); |
+ DisableDebugger(); |
// Force optimization now that code flushing is disabled. |
{ v8::HandleScope scope(CcTest::isolate()); |