From 5e2cfb173241c104e607659ad802a0a15a055067 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Thu, 24 Jan 2019 22:48:34 +0300 Subject: update for node abi 68 --- index.mm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.mm b/index.mm index 423af50..0ee829b 100644 --- a/index.mm +++ b/index.mm @@ -75,7 +75,7 @@ static void DelayAsyncAfter(uv_work_t *req,int status) { Local::New(isolate, baton->callback)->Call(isolate->GetCurrentContext()->Global(), 1, argv); baton->callback.Reset(); - + delete baton; } @@ -119,7 +119,7 @@ void AskForMediaAccess(const v8::FunctionCallbackInfo& args) { String::NewFromUtf8(isolate, "invalid media type"))); } - args.GetReturnValue().Set(Undefined(isolate)); + args.GetReturnValue().Set(Undefined(isolate)); } void GetMediaAccessStatus(const v8::FunctionCallbackInfo& args) { @@ -134,7 +134,7 @@ void GetMediaAccessStatus(const v8::FunctionCallbackInfo& args) { String::Utf8Value mediaTypeValue(args[0]); std::string mediaType(*mediaTypeValue); - + if (auto type = ParseMediaType(mediaType)) { if (isMojave()) { args.GetReturnValue().Set(String::NewFromUtf8(isolate, ConvertAuthorizationStatus( @@ -146,10 +146,10 @@ void GetMediaAccessStatus(const v8::FunctionCallbackInfo& args) { } else { isolate->ThrowException(Exception::TypeError( String::NewFromUtf8(isolate, "invalid media type"))); - } + } } -void Init(Handle exports) { +void Init(Local exports) { NODE_SET_METHOD(exports, "getMediaAccessStatus", GetMediaAccessStatus); NODE_SET_METHOD(exports, "askForMediaAccess", AskForMediaAccess); } -- cgit v1.2.3