Skip to content

Commit 9419e1f

Browse files
toastynerdrvagg
authored andcommitted
src: fix inconsistency between a check and error
dlopen takes exactly 2 arguments, check for exactly 2 PR-URL: #515 Reviewed-By: Rod Vagg <[email protected]>
1 parent 03ee4d8 commit 9419e1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1963,7 +1963,7 @@ void DLOpen(const FunctionCallbackInfo<Value>& args) {
19631963

19641964
CHECK_EQ(modpending, nullptr);
19651965

1966-
if (args.Length() < 2) {
1966+
if (args.Length() != 2) {
19671967
env->ThrowError("process.dlopen takes exactly 2 arguments.");
19681968
return;
19691969
}

0 commit comments

Comments
 (0)