diff --git a/src/node.cc b/src/node.cc index 57dd74f6701..2cf6e1ddb8a 100644 --- a/src/node.cc +++ b/src/node.cc @@ -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; } }