From b9c5a51b01c9253753b89af98221014fbfc47541 Mon Sep 17 00:00:00 2001 From: Brendan Forster Date: Tue, 9 Apr 2019 15:11:11 -0400 Subject: [PATCH] update signature for Init to align with best practices --- 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);