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

Commit e4daabc

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node_file.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ static void StatNoException(const FunctionCallbackInfo<Value>& args) {
758758
args.GetReturnValue().Set(v8::Boolean::New(env->isolate(), false));
759759
else
760760
FillStatsArray(env->fs_stats_field_array(),
761-
static_cast<const uv_stat_t*>(SYNC_REQ.ptr));
761+
static_cast<const uv_stat_t*>(req_wrap.req.ptr));
762762
}
763763

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

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

0 commit comments

Comments
 (0)