Skip to content

Commit

Permalink
Update RCSwitchNode.cpp
Browse files Browse the repository at this point in the history
Line 92 needs to be changed for new node-red versions
  • Loading branch information
sebi1909-node authored and marvinroger committed May 1, 2020
1 parent e23b29d commit e05aea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RCSwitchNode.cpp
Expand Up @@ -89,7 +89,7 @@ void RCSwitchNode::New(const Nan::FunctionCallbackInfo<v8::Value>& info) {
const int argc = 0;
v8::Local<v8::Value> argv[argc];
v8::Local<v8::Function> cons = Nan::New<v8::Function>(constructor);
info.GetReturnValue().Set(cons->NewInstance(argc, argv));
info.GetReturnValue().Set(Nan::NewInstance(cons, argc, argv).ToLocalChecked());
}
}

Expand Down

0 comments on commit e05aea9

Please sign in to comment.