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
SYNC_REQ has been removed. See
nodejs/node#18297
nodejs/node#19041
  • Loading branch information
alexeykuzmin committed Apr 10, 2018
1 parent 332c2d7 commit e4daabc
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 @@ -758,7 +758,7 @@ static void StatNoException(const FunctionCallbackInfo<Value>& args) {
args.GetReturnValue().Set(v8::Boolean::New(env->isolate(), false));
else
FillStatsArray(env->fs_stats_field_array(),
static_cast<const uv_stat_t*>(SYNC_REQ.ptr));
static_cast<const uv_stat_t*>(req_wrap.req.ptr));
}

static void LStat(const FunctionCallbackInfo<Value>& args) {
Expand Down Expand Up @@ -802,7 +802,7 @@ static void LStatNoException(const FunctionCallbackInfo<Value>& args) {
args.GetReturnValue().Set(v8::Boolean::New(env->isolate(), false));
else
FillStatsArray(env->fs_stats_field_array(),
static_cast<const uv_stat_t*>(SYNC_REQ.ptr));
static_cast<const uv_stat_t*>(req_wrap.req.ptr));
}

static void FStat(const FunctionCallbackInfo<Value>& args) {
Expand Down

0 comments on commit e4daabc

Please sign in to comment.