Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoastynerd <tylermorgan86@gmail.com>2015-01-19 21:17:45 +0300
committerRod Vagg <rod@vagg.org>2015-01-20 03:17:11 +0300
commit9419e1fb698e1a9319fec5c4777686d62fad4a51 (patch)
treef9a45b668a65e8c27d01fe306a3c2630e7581ae3
parent03ee4d854744e83f99bc5857b98f75139c448564 (diff)
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 <rod@vagg.org>
-rw-r--r--src/node.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node.cc b/src/node.cc
index caf1215b380..59a5b31901f 100644
--- a/src/node.cc
+++ b/src/node.cc
@@ -1963,7 +1963,7 @@ void DLOpen(const FunctionCallbackInfo<Value>& args) {
CHECK_EQ(modpending, nullptr);
- if (args.Length() < 2) {
+ if (args.Length() != 2) {
env->ThrowError("process.dlopen takes exactly 2 arguments.");
return;
}