diff options
author | toastynerd <tylermorgan86@gmail.com> | 2015-01-19 21:17:45 +0300 |
---|---|---|
committer | Rod Vagg <rod@vagg.org> | 2015-01-20 03:17:11 +0300 |
commit | 9419e1fb698e1a9319fec5c4777686d62fad4a51 (patch) | |
tree | f9a45b668a65e8c27d01fe306a3c2630e7581ae3 | |
parent | 03ee4d854744e83f99bc5857b98f75139c448564 (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.cc | 2 |
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; } |