@@ -2859,10 +2859,10 @@ static void Chown(const FunctionCallbackInfo<Value>& args) {
28592859 ToNamespacedPath (env, &path);
28602860
28612861 CHECK (IsSafeJsInt (args[1 ]));
2862- const uv_uid_t uid = FromV8Value<uv_uid_t >(args[1 ]);
2862+ const auto uid = FromV8Value<uv_uid_t , true >(args[1 ]);
28632863
28642864 CHECK (IsSafeJsInt (args[2 ]));
2865- const uv_gid_t gid = FromV8Value<uv_gid_t >(args[2 ]);
2865+ const auto gid = FromV8Value<uv_gid_t , true >(args[2 ]);
28662866
28672867 if (argc > 3 ) { // chown(path, uid, gid, req)
28682868 FSReqBase* req_wrap_async = GetReqWrap (args, 3 );
@@ -2904,10 +2904,10 @@ static void FChown(const FunctionCallbackInfo<Value>& args) {
29042904 }
29052905
29062906 CHECK (IsSafeJsInt (args[1 ]));
2907- const uv_uid_t uid = static_cast <uv_uid_t >(args[1 ]. As <Integer>()-> Value () );
2907+ const auto uid = FromV8Value <uv_uid_t , true >(args[1 ]);
29082908
29092909 CHECK (IsSafeJsInt (args[2 ]));
2910- const uv_gid_t gid = static_cast <uv_gid_t >(args[2 ]. As <Integer>()-> Value () );
2910+ const auto gid = FromV8Value <uv_gid_t , true >(args[2 ]);
29112911
29122912 if (argc > 3 ) { // fchown(fd, uid, gid, req)
29132913 FSReqBase* req_wrap_async = GetReqWrap (args, 3 );
@@ -2934,10 +2934,10 @@ static void LChown(const FunctionCallbackInfo<Value>& args) {
29342934 ToNamespacedPath (env, &path);
29352935
29362936 CHECK (IsSafeJsInt (args[1 ]));
2937- const uv_uid_t uid = FromV8Value<uv_uid_t >(args[1 ]);
2937+ const auto uid = FromV8Value<uv_uid_t , true >(args[1 ]);
29382938
29392939 CHECK (IsSafeJsInt (args[2 ]));
2940- const uv_gid_t gid = FromV8Value<uv_gid_t >(args[2 ]);
2940+ const auto gid = FromV8Value<uv_gid_t , true >(args[2 ]);
29412941
29422942 if (argc > 3 ) { // lchown(path, uid, gid, req)
29432943 FSReqBase* req_wrap_async = GetReqWrap (args, 3 );
0 commit comments