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

Commit bc89511

Browse files
committed
fixup! Add fs.statSyncNoException
SYNC_REQ has been removed. See nodejs/node#18297 nodejs/node#19041
1 parent abbfd1f commit bc89511

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/node_file.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ static void StatNoException(const FunctionCallbackInfo<Value>& args) {
858858
args.GetReturnValue().Set(v8::Boolean::New(env->isolate(), false));
859859
else
860860
FillStatsArray(env->fs_stats_field_array(),
861-
static_cast<const uv_stat_t*>(SYNC_REQ.ptr));
861+
static_cast<const uv_stat_t*>(req_wrap.req.ptr));
862862
}
863863

864864
static void LStat(const FunctionCallbackInfo<Value>& args) {
@@ -908,7 +908,7 @@ static void LStatNoException(const FunctionCallbackInfo<Value>& args) {
908908
args.GetReturnValue().Set(v8::Boolean::New(env->isolate(), false));
909909
else
910910
FillStatsArray(env->fs_stats_field_array(),
911-
static_cast<const uv_stat_t*>(SYNC_REQ.ptr));
911+
static_cast<const uv_stat_t*>(req_wrap.req.ptr));
912912
}
913913

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

0 commit comments

Comments
 (0)