diff --git a/src/node.cc b/src/node.cc index caf1215b38046d..59a5b31901fc47 100644 --- a/src/node.cc +++ b/src/node.cc @@ -1963,7 +1963,7 @@ void DLOpen(const FunctionCallbackInfo& args) { CHECK_EQ(modpending, nullptr); - if (args.Length() < 2) { + if (args.Length() != 2) { env->ThrowError("process.dlopen takes exactly 2 arguments."); return; }