diff --git a/src/node_file.cc b/src/node_file.cc index 2434a1e9a9bcf8..a5e882b02b78f3 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -1572,7 +1572,7 @@ static void RenameSync(const FunctionCallbackInfo& args) { Environment* env = Environment::GetCurrent(args); Isolate* isolate = env->isolate(); - CHECK_GE(args.Length(), 2); + CHECK_EQ(args.Length(), 2); BufferValue old_path(isolate, args[0]); CHECK_NOT_NULL(*old_path);