Use Nan::Set in all places

This commit is contained in:
Petr Zahradnik
2020-01-24 16:06:49 +01:00
committed by petrzjunior
parent 9cc61350a0
commit 0f3ff2c20a
2 changed files with 6 additions and 6 deletions

View File

@@ -18,7 +18,7 @@ void PCSCLite::init(Local<Object> target) {
constructor.Reset(Nan::GetFunction(tpl).ToLocalChecked());
target->Set(Nan::New("PCSCLite").ToLocalChecked(), Nan::GetFunction(tpl).ToLocalChecked());
Nan::Set(target, Nan::New("PCSCLite").ToLocalChecked(), Nan::GetFunction(tpl).ToLocalChecked());
}
PCSCLite::PCSCLite(): m_card_context(0),