Skip to content

Commit

Permalink
Remove version check for modules with nm_version set to -1
Browse files Browse the repository at this point in the history
  • Loading branch information
boingoing committed Nov 11, 2016
1 parent f3fc635 commit e8de3a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2395,7 +2395,7 @@ void DLOpen(const FunctionCallbackInfo<Value>& args) {
env->ThrowError("Module did not self-register.");
return;
}
if (mp->nm_version != NODE_MODULE_VERSION) {
if (mp->nm_version != NODE_MODULE_VERSION && mp->nm_version != -1) {
char errmsg[1024];
snprintf(errmsg,
sizeof(errmsg),
Expand Down

0 comments on commit e8de3a7

Please sign in to comment.