Fix a few warnings

This commit is contained in:
Alex Hultman 2020-06-08 19:10:35 +02:00
parent 99bd71ce8b
commit 244ad00e67

View File

@ -121,7 +121,7 @@ void uWS_App_ws(const FunctionCallbackInfo<Value> &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<Value> &args) {
/* Return a false boolean if listen failed */
Local<Value> argv[] = {token ? Local<Value>::Cast(External::New(isolate, token)) : Local<Value>::Cast(Boolean::New(isolate, false))};
/* Immediate call cannot be CallJS */
Local<Function>::Cast(args[args.Length() - 1])->Call(isolate->GetCurrentContext(), isolate->GetCurrentContext()->Global(), 1, argv);
Local<Function>::Cast(args[args.Length() - 1])->Call(isolate->GetCurrentContext(), isolate->GetCurrentContext()->Global(), 1, argv).IsEmpty();
};
/* Host is first, if present */