@@ -2768,10 +2768,10 @@ static void Chown(const FunctionCallbackInfo<Value>& args) {
27682768  ToNamespacedPath (env, &path);
27692769
27702770  CHECK (IsSafeJsInt (args[1 ]));
2771-   const  uv_uid_t  uid = FromV8Value<uv_uid_t >(args[1 ]);
2771+   const  auto  uid = FromV8Value<uv_uid_t ,  true >(args[1 ]);
27722772
27732773  CHECK (IsSafeJsInt (args[2 ]));
2774-   const  uv_gid_t  gid = FromV8Value<uv_gid_t >(args[2 ]);
2774+   const  auto  gid = FromV8Value<uv_gid_t ,  true >(args[2 ]);
27752775
27762776  if  (argc > 3 ) {  //  chown(path, uid, gid, req)
27772777    FSReqBase* req_wrap_async = GetReqWrap (args, 3 );
@@ -2813,10 +2813,10 @@ static void FChown(const FunctionCallbackInfo<Value>& args) {
28132813  }
28142814
28152815  CHECK (IsSafeJsInt (args[1 ]));
2816-   const  uv_uid_t  uid = static_cast <uv_uid_t >(args[1 ]. As <Integer>()-> Value () );
2816+   const  auto  uid = FromV8Value <uv_uid_t ,  true >(args[1 ]);
28172817
28182818  CHECK (IsSafeJsInt (args[2 ]));
2819-   const  uv_gid_t  gid = static_cast <uv_gid_t >(args[2 ]. As <Integer>()-> Value () );
2819+   const  auto  gid = FromV8Value <uv_gid_t ,  true >(args[2 ]);
28202820
28212821  if  (argc > 3 ) {  //  fchown(fd, uid, gid, req)
28222822    FSReqBase* req_wrap_async = GetReqWrap (args, 3 );
@@ -2843,10 +2843,10 @@ static void LChown(const FunctionCallbackInfo<Value>& args) {
28432843  ToNamespacedPath (env, &path);
28442844
28452845  CHECK (IsSafeJsInt (args[1 ]));
2846-   const  uv_uid_t  uid = FromV8Value<uv_uid_t >(args[1 ]);
2846+   const  auto  uid = FromV8Value<uv_uid_t ,  true >(args[1 ]);
28472847
28482848  CHECK (IsSafeJsInt (args[2 ]));
2849-   const  uv_gid_t  gid = FromV8Value<uv_gid_t >(args[2 ]);
2849+   const  auto  gid = FromV8Value<uv_gid_t ,  true >(args[2 ]);
28502850
28512851  if  (argc > 3 ) {  //  lchown(path, uid, gid, req)
28522852    FSReqBase* req_wrap_async = GetReqWrap (args, 3 );
0 commit comments