in crypt32.cc [54:69]
Napi::Object Crypt32::Init(Napi::Env env, Napi::Object exports) {
Napi::Function func = DefineClass(
env, "Crypt32",
{
InstanceMethod<&Crypt32::done>("done"),
InstanceMethod<&Crypt32::next>("next"),
InstanceMethod<&Crypt32::none>("none"),
});
Napi::FunctionReference* constructor = new Napi::FunctionReference();
*constructor = Napi::Persistent(func);
exports.Set("Crypt32", func);
env.SetInstanceData<Napi::FunctionReference>(constructor);
return exports;
}