Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index 217ac0123eb3e96040cebb2ebfd358d197922285..dd829c3680a786df07d7e2c68bec7bae0891af82 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -3585,7 +3585,7 @@ static int forced_gc_counter = 0; |
void MockUseCounterCallback(v8::Isolate* isolate, |
v8::Isolate::UseCounterFeature feature) { |
- isolate->GetCallingContext(); |
+ isolate->GetCurrentContext(); |
if (feature == v8::Isolate::kForcedGC) { |
forced_gc_counter++; |
} |