Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v12 deprecations #20

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/aead.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ BAEAD::Init(v8::Local<v8::Object> &target) {
v8::Local<v8::FunctionTemplate> ctor =
Nan::New<v8::FunctionTemplate>(aead_constructor);

target->Set(Nan::New("AEAD").ToLocalChecked(),
Nan::Set(target, Nan::New("AEAD").ToLocalChecked(),
Nan::GetFunction(ctor).ToLocalChecked());
}

Expand Down
2 changes: 1 addition & 1 deletion src/aes.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ BAES::Init(v8::Local<v8::Object> &target) {
Nan::Export(obj, "encipher", BAES::Encipher);
Nan::Export(obj, "decipher", BAES::Decipher);

target->Set(Nan::New("aes").ToLocalChecked(), obj);
Nan::Set(target, Nan::New("aes").ToLocalChecked(), obj);
}

NAN_METHOD(BAES::Encipher) {
Expand Down
6 changes: 3 additions & 3 deletions src/bcrypto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ NAN_METHOD(cleanse) {
}

NAN_MODULE_INIT(init) {
target->Set(Nan::New("major").ToLocalChecked(),
Nan::Set(target, Nan::New("major").ToLocalChecked(),
Nan::New<v8::Uint32>(NODE_MAJOR_VERSION));
target->Set(Nan::New("minor").ToLocalChecked(),
Nan::Set(target, Nan::New("minor").ToLocalChecked(),
Nan::New<v8::Uint32>(NODE_MINOR_VERSION));
target->Set(Nan::New("patch").ToLocalChecked(),
Nan::Set(target, Nan::New("patch").ToLocalChecked(),
Nan::New<v8::Uint32>(NODE_PATCH_VERSION));

BAEAD::Init(target);
Expand Down
2 changes: 1 addition & 1 deletion src/blake2b.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ BBLAKE2b::Init(v8::Local<v8::Object> &target) {
v8::Local<v8::FunctionTemplate> ctor =
Nan::New<v8::FunctionTemplate>(blake2b_constructor);

target->Set(Nan::New("BLAKE2b").ToLocalChecked(),
Nan::Set(target, Nan::New("BLAKE2b").ToLocalChecked(),
Nan::GetFunction(ctor).ToLocalChecked());
}

Expand Down
2 changes: 1 addition & 1 deletion src/blake2s.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ BBLAKE2s::Init(v8::Local<v8::Object> &target) {
v8::Local<v8::FunctionTemplate> ctor =
Nan::New<v8::FunctionTemplate>(blake2s_constructor);

target->Set(Nan::New("BLAKE2s").ToLocalChecked(),
Nan::Set(target, Nan::New("BLAKE2s").ToLocalChecked(),
Nan::GetFunction(ctor).ToLocalChecked());
}

Expand Down
2 changes: 1 addition & 1 deletion src/chacha20.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ BChaCha20::Init(v8::Local<v8::Object> &target) {
v8::Local<v8::FunctionTemplate> ctor =
Nan::New<v8::FunctionTemplate>(chacha20_constructor);

target->Set(Nan::New("ChaCha20").ToLocalChecked(),
Nan::Set(target, Nan::New("ChaCha20").ToLocalChecked(),
Nan::GetFunction(ctor).ToLocalChecked());
}

Expand Down
2 changes: 1 addition & 1 deletion src/cipherbase.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ BCipherBase::Init(v8::Local<v8::Object> &target) {
v8::Local<v8::FunctionTemplate> ctor =
Nan::New<v8::FunctionTemplate>(cipher_constructor);

target->Set(Nan::New("CipherBase").ToLocalChecked(),
Nan::Set(target, Nan::New("CipherBase").ToLocalChecked(),
Nan::GetFunction(ctor).ToLocalChecked());
}

Expand Down
64 changes: 32 additions & 32 deletions src/dsa.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ BDSA::Init(v8::Local<v8::Object> &target) {
Nan::Export(obj, "verify", BDSA::Verify);
Nan::Export(obj, "derive", BDSA::Derive);

target->Set(Nan::New("dsa").ToLocalChecked(), obj);
Nan::Set(target, Nan::New("dsa").ToLocalChecked(), obj);
}

NAN_METHOD(BDSA::ParamsGenerate) {
Expand All @@ -54,9 +54,9 @@ NAN_METHOD(BDSA::ParamsGenerate) {
return Nan::ThrowTypeError("Could not generate key.");

v8::Local<v8::Array> ret = Nan::New<v8::Array>();
ret->Set(0, Nan::CopyBuffer((char *)k->pd, k->pl).ToLocalChecked());
ret->Set(1, Nan::CopyBuffer((char *)k->qd, k->ql).ToLocalChecked());
ret->Set(2, Nan::CopyBuffer((char *)k->gd, k->gl).ToLocalChecked());
Nan::Set(ret, 0, Nan::CopyBuffer((char *)k->pd, k->pl).ToLocalChecked());
Nan::Set(ret, 1, Nan::CopyBuffer((char *)k->qd, k->ql).ToLocalChecked());
Nan::Set(ret, 2, Nan::CopyBuffer((char *)k->gd, k->gl).ToLocalChecked());

bcrypto_dsa_key_free(k);

Expand Down Expand Up @@ -170,9 +170,9 @@ NAN_METHOD(BDSA::ParamsImport) {
return Nan::ThrowError("Could not import params.");

v8::Local<v8::Array> ret = Nan::New<v8::Array>();
ret->Set(0, Nan::CopyBuffer((char *)k->pd, k->pl).ToLocalChecked());
ret->Set(1, Nan::CopyBuffer((char *)k->qd, k->ql).ToLocalChecked());
ret->Set(2, Nan::CopyBuffer((char *)k->gd, k->gl).ToLocalChecked());
Nan::Set(ret, 0, Nan::CopyBuffer((char *)k->pd, k->pl).ToLocalChecked());
Nan::Set(ret, 1, Nan::CopyBuffer((char *)k->qd, k->ql).ToLocalChecked());
Nan::Set(ret, 2, Nan::CopyBuffer((char *)k->gd, k->gl).ToLocalChecked());

bcrypto_dsa_key_free(k);

Expand Down Expand Up @@ -211,11 +211,11 @@ NAN_METHOD(BDSA::PrivateKeyCreate) {
return Nan::ThrowError("Could not generate key.");

v8::Local<v8::Array> ret = Nan::New<v8::Array>();
ret->Set(0, Nan::CopyBuffer((char *)k->pd, k->pl).ToLocalChecked());
ret->Set(1, Nan::CopyBuffer((char *)k->qd, k->ql).ToLocalChecked());
ret->Set(2, Nan::CopyBuffer((char *)k->gd, k->gl).ToLocalChecked());
ret->Set(3, Nan::CopyBuffer((char *)k->yd, k->yl).ToLocalChecked());
ret->Set(4, Nan::CopyBuffer((char *)k->xd, k->xl).ToLocalChecked());
Nan::Set(ret, 0, Nan::CopyBuffer((char *)k->pd, k->pl).ToLocalChecked());
Nan::Set(ret, 1, Nan::CopyBuffer((char *)k->qd, k->ql).ToLocalChecked());
Nan::Set(ret, 2, Nan::CopyBuffer((char *)k->gd, k->gl).ToLocalChecked());
Nan::Set(ret, 3, Nan::CopyBuffer((char *)k->yd, k->yl).ToLocalChecked());
Nan::Set(ret, 4, Nan::CopyBuffer((char *)k->xd, k->xl).ToLocalChecked());

bcrypto_dsa_key_free(k);

Expand Down Expand Up @@ -376,11 +376,11 @@ NAN_METHOD(BDSA::PrivateKeyImport) {
return Nan::ThrowError("Could not import private key.");

v8::Local<v8::Array> ret = Nan::New<v8::Array>();
ret->Set(0, Nan::CopyBuffer((char *)k->pd, k->pl).ToLocalChecked());
ret->Set(1, Nan::CopyBuffer((char *)k->qd, k->ql).ToLocalChecked());
ret->Set(2, Nan::CopyBuffer((char *)k->gd, k->gl).ToLocalChecked());
ret->Set(3, Nan::CopyBuffer((char *)k->yd, k->yl).ToLocalChecked());
ret->Set(4, Nan::CopyBuffer((char *)k->xd, k->xl).ToLocalChecked());
Nan::Set(ret, 0, Nan::CopyBuffer((char *)k->pd, k->pl).ToLocalChecked());
Nan::Set(ret, 1, Nan::CopyBuffer((char *)k->qd, k->ql).ToLocalChecked());
Nan::Set(ret, 2, Nan::CopyBuffer((char *)k->gd, k->gl).ToLocalChecked());
Nan::Set(ret, 3, Nan::CopyBuffer((char *)k->yd, k->yl).ToLocalChecked());
Nan::Set(ret, 4, Nan::CopyBuffer((char *)k->xd, k->xl).ToLocalChecked());

bcrypto_dsa_key_free(k);

Expand Down Expand Up @@ -451,11 +451,11 @@ NAN_METHOD(BDSA::PrivateKeyImportPKCS8) {
return Nan::ThrowError("Could not import private key.");

v8::Local<v8::Array> ret = Nan::New<v8::Array>();
ret->Set(0, Nan::CopyBuffer((char *)k->pd, k->pl).ToLocalChecked());
ret->Set(1, Nan::CopyBuffer((char *)k->qd, k->ql).ToLocalChecked());
ret->Set(2, Nan::CopyBuffer((char *)k->gd, k->gl).ToLocalChecked());
ret->Set(3, Nan::CopyBuffer((char *)k->yd, k->yl).ToLocalChecked());
ret->Set(4, Nan::CopyBuffer((char *)k->xd, k->xl).ToLocalChecked());
Nan::Set(ret, 0, Nan::CopyBuffer((char *)k->pd, k->pl).ToLocalChecked());
Nan::Set(ret, 1, Nan::CopyBuffer((char *)k->qd, k->ql).ToLocalChecked());
Nan::Set(ret, 2, Nan::CopyBuffer((char *)k->gd, k->gl).ToLocalChecked());
Nan::Set(ret, 3, Nan::CopyBuffer((char *)k->yd, k->yl).ToLocalChecked());
Nan::Set(ret, 4, Nan::CopyBuffer((char *)k->xd, k->xl).ToLocalChecked());

bcrypto_dsa_key_free(k);

Expand Down Expand Up @@ -557,10 +557,10 @@ NAN_METHOD(BDSA::PublicKeyImport) {
return Nan::ThrowError("Could not import public key.");

v8::Local<v8::Array> ret = Nan::New<v8::Array>();
ret->Set(0, Nan::CopyBuffer((char *)k->pd, k->pl).ToLocalChecked());
ret->Set(1, Nan::CopyBuffer((char *)k->qd, k->ql).ToLocalChecked());
ret->Set(2, Nan::CopyBuffer((char *)k->gd, k->gl).ToLocalChecked());
ret->Set(3, Nan::CopyBuffer((char *)k->yd, k->yl).ToLocalChecked());
Nan::Set(ret, 0, Nan::CopyBuffer((char *)k->pd, k->pl).ToLocalChecked());
Nan::Set(ret, 1, Nan::CopyBuffer((char *)k->qd, k->ql).ToLocalChecked());
Nan::Set(ret, 2, Nan::CopyBuffer((char *)k->gd, k->gl).ToLocalChecked());
Nan::Set(ret, 3, Nan::CopyBuffer((char *)k->yd, k->yl).ToLocalChecked());

bcrypto_dsa_key_free(k);

Expand Down Expand Up @@ -626,10 +626,10 @@ NAN_METHOD(BDSA::PublicKeyImportSPKI) {
return Nan::ThrowError("Could not import public key.");

v8::Local<v8::Array> ret = Nan::New<v8::Array>();
ret->Set(0, Nan::CopyBuffer((char *)k->pd, k->pl).ToLocalChecked());
ret->Set(1, Nan::CopyBuffer((char *)k->qd, k->ql).ToLocalChecked());
ret->Set(2, Nan::CopyBuffer((char *)k->gd, k->gl).ToLocalChecked());
ret->Set(3, Nan::CopyBuffer((char *)k->yd, k->yl).ToLocalChecked());
Nan::Set(ret, 0, Nan::CopyBuffer((char *)k->pd, k->pl).ToLocalChecked());
Nan::Set(ret, 1, Nan::CopyBuffer((char *)k->qd, k->ql).ToLocalChecked());
Nan::Set(ret, 2, Nan::CopyBuffer((char *)k->gd, k->gl).ToLocalChecked());
Nan::Set(ret, 3, Nan::CopyBuffer((char *)k->yd, k->yl).ToLocalChecked());

bcrypto_dsa_key_free(k);

Expand Down Expand Up @@ -686,8 +686,8 @@ NAN_METHOD(BDSA::Sign) {
return Nan::ThrowError("Could not sign message.");

v8::Local<v8::Array> ret = Nan::New<v8::Array>();
ret->Set(0, Nan::NewBuffer((char *)r, rl).ToLocalChecked());
ret->Set(1, Nan::NewBuffer((char *)s, sl).ToLocalChecked());
Nan::Set(ret, 0, Nan::NewBuffer((char *)r, rl).ToLocalChecked());
Nan::Set(ret, 1, Nan::NewBuffer((char *)s, sl).ToLocalChecked());

info.GetReturnValue().Set(ret);
}
Expand Down
6 changes: 3 additions & 3 deletions src/dsa_async.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ BDSAWorker::HandleOKCallback() {
assert(k);

v8::Local<v8::Array> ret = Nan::New<v8::Array>();
ret->Set(0, Nan::CopyBuffer((char *)k->pd, k->pl).ToLocalChecked());
ret->Set(1, Nan::CopyBuffer((char *)k->qd, k->ql).ToLocalChecked());
ret->Set(2, Nan::CopyBuffer((char *)k->gd, k->gl).ToLocalChecked());
Nan::Set(ret, 0, Nan::CopyBuffer((char *)k->pd, k->pl).ToLocalChecked());
Nan::Set(ret, 1, Nan::CopyBuffer((char *)k->qd, k->ql).ToLocalChecked());
Nan::Set(ret, 2, Nan::CopyBuffer((char *)k->gd, k->gl).ToLocalChecked());

bcrypto_dsa_key_free(k);

Expand Down
6 changes: 3 additions & 3 deletions src/ecdsa.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ BECDSA::Init(v8::Local<v8::Object> &target) {
Nan::Export(obj, "recover", BECDSA::Recover);
Nan::Export(obj, "derive", BECDSA::Derive);

target->Set(Nan::New("ecdsa").ToLocalChecked(), obj);
Nan::Set(target, Nan::New("ecdsa").ToLocalChecked(), obj);
}

NAN_METHOD(BECDSA::PrivateKeyGenerate) {
Expand Down Expand Up @@ -722,8 +722,8 @@ NAN_METHOD(BECDSA::Sign) {
return Nan::ThrowError("Could not sign.");

v8::Local<v8::Array> ret = Nan::New<v8::Array>();
ret->Set(0, Nan::NewBuffer((char *)r, rl).ToLocalChecked());
ret->Set(1, Nan::NewBuffer((char *)s, sl).ToLocalChecked());
Nan::Set(ret, 0, Nan::NewBuffer((char *)r, rl).ToLocalChecked());
Nan::Set(ret, 1, Nan::NewBuffer((char *)s, sl).ToLocalChecked());

info.GetReturnValue().Set(ret);
}
Expand Down
12 changes: 6 additions & 6 deletions src/ed25519.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ BED25519::Init(v8::Local<v8::Object> &target) {
Nan::Export(obj, "exchange", BED25519::Exchange);
Nan::Export(obj, "exchangeWithScalar", BED25519::ExchangeWithScalar);

target->Set(Nan::New("ed25519").ToLocalChecked(), obj);
Nan::Set(target, Nan::New("ed25519").ToLocalChecked(), obj);
}

NAN_METHOD(BED25519::PrivateKeyConvert) {
Expand Down Expand Up @@ -827,23 +827,23 @@ NAN_METHOD(BED25519::BatchVerify) {
const uint8_t **sigs = &slab1[len * 2];

for (size_t i = 0; i < len; i++) {
if (!batch->Get(i)->IsArray()) {
if (!Nan::Get(batch, i).ToLocalChecked()->IsArray()) {
free(slab1);
free(slab2);
return Nan::ThrowTypeError("Batch item must be an array.");
}

v8::Local<v8::Array> item = batch->Get(i).As<v8::Array>();
v8::Local<v8::Array> item = Nan::Get(batch, i).ToLocalChecked().As<v8::Array>();

if (item->Length() != 3) {
free(slab1);
free(slab2);
return Nan::ThrowError("Invalid input.");
}

v8::Local<v8::Object> mbuf = item->Get(0).As<v8::Object>();
v8::Local<v8::Object> sbuf = item->Get(1).As<v8::Object>();
v8::Local<v8::Object> pbuf = item->Get(2).As<v8::Object>();
v8::Local<v8::Object> mbuf = Nan::Get(item, 0).ToLocalChecked().As<v8::Object>();
v8::Local<v8::Object> sbuf = Nan::Get(item, 1).ToLocalChecked().As<v8::Object>();
v8::Local<v8::Object> pbuf = Nan::Get(item, 2).ToLocalChecked().As<v8::Object>();

if (!node::Buffer::HasInstance(mbuf)
|| !node::Buffer::HasInstance(sbuf)
Expand Down
2 changes: 1 addition & 1 deletion src/ed448.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ BED448::Init(v8::Local<v8::Object> &target) {
Nan::Export(obj, "exchange", BED448::Exchange);
Nan::Export(obj, "exchangeWithScalar", BED448::ExchangeWithScalar);

target->Set(Nan::New("ed448").ToLocalChecked(), obj);
Nan::Set(target, Nan::New("ed448").ToLocalChecked(), obj);
}

NAN_METHOD(BED448::PrivateKeyConvert) {
Expand Down
2 changes: 1 addition & 1 deletion src/hash160.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ BHash160::Init(v8::Local<v8::Object> &target) {
v8::Local<v8::FunctionTemplate> ctor =
Nan::New<v8::FunctionTemplate>(hash160_constructor);

target->Set(Nan::New("Hash160").ToLocalChecked(),
Nan::Set(target, Nan::New("Hash160").ToLocalChecked(),
Nan::GetFunction(ctor).ToLocalChecked());
}

Expand Down
2 changes: 1 addition & 1 deletion src/hash256.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ BHash256::Init(v8::Local<v8::Object> &target) {
v8::Local<v8::FunctionTemplate> ctor =
Nan::New<v8::FunctionTemplate>(hash256_constructor);

target->Set(Nan::New("Hash256").ToLocalChecked(),
Nan::Set(target, Nan::New("Hash256").ToLocalChecked(),
Nan::GetFunction(ctor).ToLocalChecked());
}

Expand Down
2 changes: 1 addition & 1 deletion src/keccak.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ BKeccak::Init(v8::Local<v8::Object> &target) {
v8::Local<v8::FunctionTemplate> ctor =
Nan::New<v8::FunctionTemplate>(keccak_constructor);

target->Set(Nan::New("Keccak").ToLocalChecked(),
Nan::Set(target, Nan::New("Keccak").ToLocalChecked(),
Nan::GetFunction(ctor).ToLocalChecked());
}

Expand Down
2 changes: 1 addition & 1 deletion src/md4.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ BMD4::Init(v8::Local<v8::Object> &target) {
v8::Local<v8::FunctionTemplate> ctor =
Nan::New<v8::FunctionTemplate>(md4_constructor);

target->Set(Nan::New("MD4").ToLocalChecked(),
Nan::Set(target, Nan::New("MD4").ToLocalChecked(),
Nan::GetFunction(ctor).ToLocalChecked());
}

Expand Down
2 changes: 1 addition & 1 deletion src/md5.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ BMD5::Init(v8::Local<v8::Object> &target) {
v8::Local<v8::FunctionTemplate> ctor =
Nan::New<v8::FunctionTemplate>(md5_constructor);

target->Set(Nan::New("MD5").ToLocalChecked(),
Nan::Set(target, Nan::New("MD5").ToLocalChecked(),
Nan::GetFunction(ctor).ToLocalChecked());
}

Expand Down
2 changes: 1 addition & 1 deletion src/murmur3.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ BMurmur3::Init(v8::Local<v8::Object> &target) {
Nan::Export(obj, "sum", BMurmur3::Sum);
Nan::Export(obj, "tweak", BMurmur3::Tweak);

target->Set(Nan::New("murmur3").ToLocalChecked(), obj);
Nan::Set(target, Nan::New("murmur3").ToLocalChecked(), obj);
}

NAN_METHOD(BMurmur3::Sum) {
Expand Down
2 changes: 1 addition & 1 deletion src/pbkdf2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ BPBKDF2::Init(v8::Local<v8::Object> &target) {
Nan::Export(obj, "deriveAsync", BPBKDF2::DeriveAsync);
Nan::Export(obj, "hasHash", BPBKDF2::HasHash);

target->Set(Nan::New("pbkdf2").ToLocalChecked(), obj);
Nan::Set(target, Nan::New("pbkdf2").ToLocalChecked(), obj);
}

NAN_METHOD(BPBKDF2::Derive) {
Expand Down
2 changes: 1 addition & 1 deletion src/poly1305.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ BPoly1305::Init(v8::Local<v8::Object> &target) {
v8::Local<v8::FunctionTemplate> ctor =
Nan::New<v8::FunctionTemplate>(poly1305_constructor);

target->Set(Nan::New("Poly1305").ToLocalChecked(),
Nan::Set(target, Nan::New("Poly1305").ToLocalChecked(),
Nan::GetFunction(ctor).ToLocalChecked());
}

Expand Down
2 changes: 1 addition & 1 deletion src/random.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ BRandom::Init(v8::Local<v8::Object> &target) {

Nan::Export(obj, "randomFill", BRandom::RandomFill);

target->Set(Nan::New("random").ToLocalChecked(), obj);
Nan::Set(target, Nan::New("random").ToLocalChecked(), obj);
}

NAN_METHOD(BRandom::RandomFill) {
Expand Down
2 changes: 1 addition & 1 deletion src/ripemd160.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ BRIPEMD160::Init(v8::Local<v8::Object> &target) {
v8::Local<v8::FunctionTemplate> ctor =
Nan::New<v8::FunctionTemplate>(ripemd160_constructor);

target->Set(Nan::New("RIPEMD160").ToLocalChecked(),
Nan::Set(target, Nan::New("RIPEMD160").ToLocalChecked(),
Nan::GetFunction(ctor).ToLocalChecked());
}

Expand Down
Loading