Index: test/cctest/test-heap-profiler.cc |
diff --git a/test/cctest/test-heap-profiler.cc b/test/cctest/test-heap-profiler.cc |
index 59113e064919f199c2f4783c21ff4fad768476ce..c9a2f40988576678093e727196a57567610df34c 100644 |
--- a/test/cctest/test-heap-profiler.cc |
+++ b/test/cctest/test-heap-profiler.cc |
@@ -1563,7 +1563,9 @@ TEST(NoDebugObjectInSnapshot) { |
v8::HandleScope scope; |
LocalContext env; |
+#ifdef ENABLE_DEBUGGER_SUPPORT |
v8::internal::Isolate::Current()->debug()->Load(); |
+#endif |
CompileRun("foo = {};"); |
const v8::HeapSnapshot* snapshot = |
v8::HeapProfiler::TakeSnapshot(v8_str("snapshot")); |