From 0b6e7a2154d57d1599aedb498be46237c76089df Mon Sep 17 00:00:00 2001 From: Brendan Forster Date: Tue, 9 Apr 2019 15:18:02 -0400 Subject: [PATCH] update signature for Init to align with best practices (#7) --- src/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cc b/src/main.cc index 288a65f..a9728f3 100644 --- a/src/main.cc +++ b/src/main.cc @@ -81,7 +81,7 @@ void SpawnAsAdmin(const Nan::FunctionCallbackInfo& info) { } } -void Init(Handle exports) { +void Init(v8::Local exports) { Nan::SetMethod(exports, "getAuthorizationForm", GetAuthorizationForm); Nan::SetMethod(exports, "clearAuthorizationCache", ClearAuthorizationCache); Nan::SetMethod(exports, "spawnAsAdmin", SpawnAsAdmin);