diff --git a/src/node_file.cc b/src/node_file.cc index 0defca8361b..09af257b1b3 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -1056,7 +1056,7 @@ static void Symlink(const FunctionCallbackInfo& args) { Environment* env = Environment::GetCurrent(args); Isolate* isolate = env->isolate(); - int argc = args.Length(); + const int argc = args.Length(); CHECK_GE(argc, 4); BufferValue target(isolate, args[0]); @@ -1085,7 +1085,7 @@ static void Link(const FunctionCallbackInfo& args) { Environment* env = Environment::GetCurrent(args); Isolate* isolate = env->isolate(); - int argc = args.Length(); + const int argc = args.Length(); CHECK_GE(argc, 3); BufferValue src(isolate, args[0]); @@ -1112,7 +1112,7 @@ static void ReadLink(const FunctionCallbackInfo& args) { Environment* env = Environment::GetCurrent(args); Isolate* isolate = env->isolate(); - int argc = args.Length(); + const int argc = args.Length(); CHECK_GE(argc, 3); BufferValue path(isolate, args[0]); @@ -1155,7 +1155,7 @@ static void Rename(const FunctionCallbackInfo& args) { Environment* env = Environment::GetCurrent(args); Isolate* isolate = env->isolate(); - int argc = args.Length(); + const int argc = args.Length(); CHECK_GE(argc, 3); BufferValue old_path(isolate, args[0]);