Index: src/extensions/statistics-extension.cc |
diff --git a/src/extensions/statistics-extension.cc b/src/extensions/statistics-extension.cc |
index 6f63245eea647607f2ba1fa79584d1fbd0cac3b2..bb5ee333f67ccbab5998b222a7c6a257b76c1588 100644 |
--- a/src/extensions/statistics-extension.cc |
+++ b/src/extensions/statistics-extension.cc |
@@ -53,7 +53,8 @@ void StatisticsExtension::GetCounters( |
Heap* heap = isolate->heap(); |
if (args.Length() > 0) { // GC if first argument evaluates to true. |
- if (args[0]->IsBoolean() && args[0]->ToBoolean()->Value()) { |
+ if (args[0]->IsBoolean() && |
+ args[0]->ToBoolean(args.GetIsolate())->Value()) { |
heap->CollectAllGarbage(Heap::kNoGCFlags, "counters extension"); |
} |
} |