mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-25 18:37:19 +00:00
Avoid deprecation warnings
This commit is contained in:
parent
528dd8afeb
commit
cb64745486
1 changed files with 2 additions and 4 deletions
|
|
@ -61,12 +61,10 @@ void SerialportPoller::Init(Handle<Object> target) {
|
|||
// Prototype
|
||||
|
||||
// SerialportPoller.close()
|
||||
Nan::SetPrototypeTemplate(tpl, "close",
|
||||
Nan::GetFunction(Nan::New<FunctionTemplate>(Close)).ToLocalChecked());
|
||||
Nan::SetPrototypeMethod(tpl, "close", Close);
|
||||
|
||||
// SerialportPoller.start()
|
||||
Nan::SetPrototypeTemplate(tpl, "start",
|
||||
Nan::GetFunction(Nan::New<FunctionTemplate>(Start)).ToLocalChecked());
|
||||
Nan::SetPrototypeMethod(tpl, "start", Start);
|
||||
|
||||
serialportpoller_constructor.Reset(tpl);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue