That actually works

This commit is contained in:
Alex Hultman 2020-11-09 14:38:43 +01:00
parent a2da9d8dd8
commit c0c77b24f8

View File

@ -249,8 +249,8 @@ void uWS_App_get(F f, const FunctionCallbackInfo<Value> &args) {
}
/* Handler */
Callback checkedCallback(args[1]);
if (checkedCallback.isInvalid()) {
Callback checkedCallback(args.GetIsolate(), args[1]);
if (checkedCallback.isInvalid(args)) {
return;
}
UniquePersistent<Function> cb = checkedCallback.getFunction();