mirror of https://github.com/nodejs/node.git
node.cc: fix bad assert
It was my mistake to change an assert check. This changes it back to how
the assert was originally done.
Fixes: c131c1f
"modules: adding load linked modules feature"
Signed-off-by: Trevor Norris <trev.norris@gmail.com>
pull/17/merge
parent
58ca48fa3b
commit
a38b917821
|
@ -2051,7 +2051,7 @@ extern "C" void node_module_register(void* m) {
|
|||
} else {
|
||||
// Once node::Init was called we can only register dynamic modules.
|
||||
// See DLOpen.
|
||||
CHECK_EQ(modpending, nullptr);
|
||||
CHECK_NE(modpending, nullptr);
|
||||
modpending = mp;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue