diff --git a/src/node_file.cc b/src/node_file.cc index 28a128b89c342c..dcbdf86579df61 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -108,13 +108,13 @@ FileHandle::FileHandle(Environment* env, int fd, Local obj) attr).FromJust(); } -void FileHandle::New(const v8::FunctionCallbackInfo& args) { +void FileHandle::New(const FunctionCallbackInfo& args) { Environment* env = Environment::GetCurrent(args); CHECK(args.IsConstructCall()); CHECK(args[0]->IsInt32()); FileHandle* handle = - new FileHandle(env, args[0].As()->Value(), args.This()); + new FileHandle(env, args[0].As()->Value(), args.This()); if (args[1]->IsNumber()) handle->read_offset_ = args[1]->IntegerValue(env->context()).FromJust(); if (args[2]->IsNumber()) @@ -671,7 +671,7 @@ inline FSReqBase* GetReqWrap(Environment* env, Local value) { if (value->IsObject()) { return Unwrap(value.As()); } else if (value->StrictEquals(env->fs_use_promises_symbol())) { - return new FSReqPromise(env); + return new FSReqPromise(env); } return nullptr; }