Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit e67db01

Browse files
committed
node: 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 <[email protected]>
1 parent 4815873 commit e67db01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2062,7 +2062,7 @@ extern "C" void node_module_register(void* m) {
20622062
} else {
20632063
// Once node::Init was called we can only register dynamic modules.
20642064
// See DLOpen.
2065-
CHECK_NE(modpending, NULL);
2065+
assert(modpending == NULL);
20662066
modpending = mp;
20672067
}
20682068
}

0 commit comments

Comments
 (0)