Browse Source

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>
archived-io.js-v0.12
Trevor Norris 10 years ago
committed by Bert Belder
parent
commit
a38b917821
  1. 2
      src/node.cc

2
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;
}
}

Loading…
Cancel
Save