diff --git a/src/node_process.cc b/src/node_process.cc index 4a30826434d572..58f446aa794d5e 100644 --- a/src/node_process.cc +++ b/src/node_process.cc @@ -54,7 +54,6 @@ using v8::Integer; using v8::Isolate; using v8::Local; using v8::Name; -using v8::Number; using v8::PropertyCallbackInfo; using v8::String; using v8::Uint32; @@ -268,7 +267,7 @@ void Uptime(const FunctionCallbackInfo& args) { uv_update_time(env->event_loop()); uptime = uv_now(env->event_loop()) - prog_start_time; - args.GetReturnValue().Set(Number::New(env->isolate(), uptime / 1000)); + args.GetReturnValue().Set(uptime / 1000); } @@ -793,7 +792,7 @@ void EnvEnumerator(const PropertyCallbackInfo& info) { void GetParentProcessId(Local property, const PropertyCallbackInfo& info) { - info.GetReturnValue().Set(Integer::New(info.GetIsolate(), uv_os_getppid())); + info.GetReturnValue().Set(uv_os_getppid()); } void GetActiveRequests(const FunctionCallbackInfo& args) {