summaryrefslogtreecommitdiff
path: root/src/node_file.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_file.cc')
-rw-r--r--src/node_file.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/node_file.cc b/src/node_file.cc
index 5b10226925..920350f01a 100644
--- a/src/node_file.cc
+++ b/src/node_file.cc
@@ -426,7 +426,7 @@ void FSReqCallback::Reject(Local<Value> reject) {
}
void FSReqCallback::ResolveStat(const uv_stat_t* stat) {
- Resolve(node::FillGlobalStatsArray(env(), stat, use_bigint()));
+ Resolve(FillGlobalStatsArray(env(), use_bigint(), stat));
}
void FSReqCallback::Resolve(Local<Value> value) {
@@ -949,8 +949,8 @@ static void Stat(const FunctionCallbackInfo<Value>& args) {
return; // error info is in ctx
}
- Local<Value> arr = node::FillGlobalStatsArray(env,
- static_cast<const uv_stat_t*>(req_wrap_sync.req.ptr), use_bigint);
+ Local<Value> arr = FillGlobalStatsArray(env, use_bigint,
+ static_cast<const uv_stat_t*>(req_wrap_sync.req.ptr));
args.GetReturnValue().Set(arr);
}
}
@@ -980,8 +980,8 @@ static void LStat(const FunctionCallbackInfo<Value>& args) {
return; // error info is in ctx
}
- Local<Value> arr = node::FillGlobalStatsArray(env,
- static_cast<const uv_stat_t*>(req_wrap_sync.req.ptr), use_bigint);
+ Local<Value> arr = FillGlobalStatsArray(env, use_bigint,
+ static_cast<const uv_stat_t*>(req_wrap_sync.req.ptr));
args.GetReturnValue().Set(arr);
}
}
@@ -1010,8 +1010,8 @@ static void FStat(const FunctionCallbackInfo<Value>& args) {
return; // error info is in ctx
}
- Local<Value> arr = node::FillGlobalStatsArray(env,
- static_cast<const uv_stat_t*>(req_wrap_sync.req.ptr), use_bigint);
+ Local<Value> arr = FillGlobalStatsArray(env, use_bigint,
+ static_cast<const uv_stat_t*>(req_wrap_sync.req.ptr));
args.GetReturnValue().Set(arr);
}
}
@@ -2237,8 +2237,8 @@ void Initialize(Local<Object> target,
env->SetMethod(target, "mkdtemp", Mkdtemp);
target->Set(context,
- FIXED_ONE_BYTE_STRING(isolate, "kFsStatsFieldsLength"),
- Integer::New(isolate, env->kFsStatsFieldsLength))
+ FIXED_ONE_BYTE_STRING(isolate, "kFsStatsFieldsNumber"),
+ Integer::New(isolate, kFsStatsFieldsNumber))
.FromJust();
target->Set(context,