Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index 634deefbfb2190e5d94c31d08ac9ace20eef6ef5..834e75b1c348ee17ff28dee737ab44474aa4de1b 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -2436,7 +2436,11 @@ void ReleaseStackTraceDataTest(const char* source) { |
CHECK(!resource->IsDisposed()); |
} |
HEAP->CollectAllAvailableGarbage(); |
+ // External source is being retained by the stack trace. |
+ CHECK(!resource->IsDisposed()); |
+ CompileRun("error.stack;"); |
+ HEAP->CollectAllAvailableGarbage(); |
// External source has been released. |
CHECK(resource->IsDisposed()); |
delete resource; |