From 1396996b027dca591934f05cdf66afde6102107d Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Mon, 16 Apr 2018 07:54:32 +0200 Subject: [PATCH] src: use v8:: namepace consistently in node_file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently node_file.cc has a number of using declarations but in a few places still uses the qualified names. This commit changes this for consistency. PR-URL: https://github.com/nodejs/node/pull/20059 Reviewed-By: Tobias Nießen Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- src/node_file.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }