diff --git a/src/AppWrapper.h b/src/AppWrapper.h index f567be8..0de5687 100644 --- a/src/AppWrapper.h +++ b/src/AppWrapper.h @@ -121,7 +121,7 @@ void uWS_App_ws(const FunctionCallbackInfo &args) { wsObject->Set(isolate->GetCurrentContext(), keys->Get(isolate->GetCurrentContext(), i).ToLocalChecked(), userData->Get(isolate->GetCurrentContext(), keys->Get(isolate->GetCurrentContext(), i).ToLocalChecked()).ToLocalChecked() - ); + ).ToChecked(); } } } @@ -275,7 +275,7 @@ void uWS_App_listen(const FunctionCallbackInfo &args) { /* Return a false boolean if listen failed */ Local argv[] = {token ? Local::Cast(External::New(isolate, token)) : Local::Cast(Boolean::New(isolate, false))}; /* Immediate call cannot be CallJS */ - Local::Cast(args[args.Length() - 1])->Call(isolate->GetCurrentContext(), isolate->GetCurrentContext()->Global(), 1, argv); + Local::Cast(args[args.Length() - 1])->Call(isolate->GetCurrentContext(), isolate->GetCurrentContext()->Global(), 1, argv).IsEmpty(); }; /* Host is first, if present */