Index: src/extensions/statistics-extension.cc |
diff --git a/src/extensions/statistics-extension.cc b/src/extensions/statistics-extension.cc |
index 71b70a533df3edaf36f9dd6f4d7e17ebf14b5910..e5a3009e8000d2060bb9730a4a8204404a7dfab5 100644 |
--- a/src/extensions/statistics-extension.cc |
+++ b/src/extensions/statistics-extension.cc |
@@ -58,8 +58,8 @@ static void AddNumber(v8::Local<v8::Object> object, |
} |
-v8::Handle<v8::Value> StatisticsExtension::GetCounters( |
- const v8::Arguments& args) { |
+void StatisticsExtension::GetCounters( |
+ const v8::FunctionCallbackInfo<v8::Value>& args) { |
Isolate* isolate = Isolate::Current(); |
Heap* heap = isolate->heap(); |
@@ -141,7 +141,7 @@ v8::Handle<v8::Value> StatisticsExtension::GetCounters( |
"lo_space_commited_bytes"); |
AddNumber(result, heap->amount_of_external_allocated_memory(), |
"amount_of_external_allocated_memory"); |
- return result; |
+ args.GetReturnValue().Set(result); |
} |