Index: src/extensions/statistics-extension.cc |
diff --git a/src/extensions/statistics-extension.cc b/src/extensions/statistics-extension.cc |
index 32bc07de8bd7fddd12769a94e848e841fcc5e3b7..651d99d45261776f5bf9d1f38fb53ad76d41c5b9 100644 |
--- a/src/extensions/statistics-extension.cc |
+++ b/src/extensions/statistics-extension.cc |
@@ -60,7 +60,7 @@ static void AddNumber(v8::Local<v8::Object> object, |
void StatisticsExtension::GetCounters( |
const v8::FunctionCallbackInfo<v8::Value>& args) { |
- Isolate* isolate = Isolate::Current(); |
+ Isolate* isolate = reinterpret_cast<Isolate*>(args.GetIsolate()); |
Heap* heap = isolate->heap(); |
if (args.Length() > 0) { // GC if first argument evaluates to true. |