diff --git a/src/node.cc b/src/node.cc index ba4118a6eb1766..5e906fe68430e4 100644 --- a/src/node.cc +++ b/src/node.cc @@ -1932,10 +1932,10 @@ void MemoryUsage(const FunctionCallbackInfo& args) { HeapStatistics v8_heap_stats; env->isolate()->GetHeapStatistics(&v8_heap_stats); - Local heap_total = - Integer::NewFromUnsigned(env->isolate(), v8_heap_stats.total_heap_size()); - Local heap_used = - Integer::NewFromUnsigned(env->isolate(), v8_heap_stats.used_heap_size()); + Local heap_total = + Number::New(env->isolate(), v8_heap_stats.total_heap_size()); + Local heap_used = + Number::New(env->isolate(), v8_heap_stats.used_heap_size()); Local info = Object::New(env->isolate()); info->Set(env->rss_string(), Number::New(env->isolate(), rss));