From 9419e1fb698e1a9319fec5c4777686d62fad4a51 Mon Sep 17 00:00:00 2001 From: toastynerd Date: Mon, 19 Jan 2015 10:17:45 -0800 Subject: [PATCH] src: fix inconsistency between a check and error dlopen takes exactly 2 arguments, check for exactly 2 PR-URL: https://github.com/iojs/io.js/pull/515 Reviewed-By: Rod Vagg --- src/node.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node.cc b/src/node.cc index caf1215b38..59a5b31901 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; }