Skip to content

Commit a38b917

Browse files
trevnorrispiscisaureus
authored andcommitted
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>
1 parent 58ca48f commit a38b917

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/node.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2051,7 +2051,7 @@ extern "C" void node_module_register(void* m) {
20512051
} else {
20522052
// Once node::Init was called we can only register dynamic modules.
20532053
// See DLOpen.
2054-
CHECK_EQ(modpending, nullptr);
2054+
CHECK_NE(modpending, nullptr);
20552055
modpending = mp;
20562056
}
20572057
}

0 commit comments

Comments
 (0)