Skip to content

Commit

Permalink
src: use v8:: namepace consistently in node_file
Browse files Browse the repository at this point in the history
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: #20059
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
danbev authored and jasnell committed Apr 19, 2018
1 parent cf46ca7 commit 1396996
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/node_file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@ FileHandle::FileHandle(Environment* env, int fd, Local<Object> obj)
attr).FromJust();
}

void FileHandle::New(const v8::FunctionCallbackInfo<v8::Value>& args) {
void FileHandle::New(const FunctionCallbackInfo<Value>& args) {
Environment* env = Environment::GetCurrent(args);
CHECK(args.IsConstructCall());
CHECK(args[0]->IsInt32());

FileHandle* handle =
new FileHandle(env, args[0].As<v8::Int32>()->Value(), args.This());
new FileHandle(env, args[0].As<Int32>()->Value(), args.This());
if (args[1]->IsNumber())
handle->read_offset_ = args[1]->IntegerValue(env->context()).FromJust();
if (args[2]->IsNumber())
Expand Down Expand Up @@ -671,7 +671,7 @@ inline FSReqBase* GetReqWrap(Environment* env, Local<Value> value) {
if (value->IsObject()) {
return Unwrap<FSReqBase>(value.As<Object>());
} else if (value->StrictEquals(env->fs_use_promises_symbol())) {
return new FSReqPromise<double, v8::Float64Array>(env);
return new FSReqPromise<double, Float64Array>(env);
}
return nullptr;
}
Expand Down

0 comments on commit 1396996

Please sign in to comment.