From 0272269d28cd89356ad80e8d6c74959502f44003 Mon Sep 17 00:00:00 2001 From: toastynerd Date: Mon, 19 Jan 2015 10:17:45 -0800 Subject: [PATCH] src: fix small inconsistency between a check and error --- src/node.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }