mirror of
https://github.com/nodejs/node.git
synced 2024-11-29 07:00:59 +01:00
src: use const in constant args.Length()
PR-URL: https://github.com/nodejs/node/pull/33555 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
This commit is contained in:
parent
b21556d28b
commit
5007611294
@ -1056,7 +1056,7 @@ static void Symlink(const FunctionCallbackInfo<Value>& 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<Value>& 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<Value>& 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<Value>& 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]);
|
||||
|
Loading…
Reference in New Issue
Block a user