Browse Source

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>
v1.8.0-commit
toastynerd 10 years ago
committed by Rod Vagg
parent
commit
9419e1fb69
  1. 2
      src/node.cc

2
src/node.cc

@ -1963,7 +1963,7 @@ void DLOpen(const FunctionCallbackInfo<Value>& args) {
CHECK_EQ(modpending, nullptr); CHECK_EQ(modpending, nullptr);
if (args.Length() < 2) { if (args.Length() != 2) {
env->ThrowError("process.dlopen takes exactly 2 arguments."); env->ThrowError("process.dlopen takes exactly 2 arguments.");
return; return;
} }

Loading…
Cancel
Save