Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Commit

Permalink
fixup! Add fs.statSyncNoException
Browse files Browse the repository at this point in the history
src: rename fs_req_wrap -> FSReqWrapSync
nodejs/node#19614
  • Loading branch information
alexeykuzmin committed Apr 27, 2018
1 parent 06911bf commit d0658f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node_file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ static void StatNoException(const FunctionCallbackInfo<Value>& args) {

String::Utf8Value path(args[0]);

fs_req_wrap req_wrap;
FSReqWrapSync req_wrap;
int result = uv_fs_stat(uv_default_loop(), &req_wrap.req, *path, NULL);
if (result < 0)
args.GetReturnValue().Set(v8::Boolean::New(env->isolate(), false));
Expand Down Expand Up @@ -902,7 +902,7 @@ static void LStatNoException(const FunctionCallbackInfo<Value>& args) {
return;
}

fs_req_wrap req_wrap;
FSReqWrapSync req_wrap;
int result = uv_fs_lstat(uv_default_loop(), &req_wrap.req, *path, NULL);
if (result < 0)
args.GetReturnValue().Set(v8::Boolean::New(env->isolate(), false));
Expand Down

0 comments on commit d0658f6

Please sign in to comment.