diff --git a/src/AppWrapper.h b/src/AppWrapper.h index 4dba8b2..73d3154 100644 --- a/src/AppWrapper.h +++ b/src/AppWrapper.h @@ -249,8 +249,8 @@ void uWS_App_get(F f, const FunctionCallbackInfo &args) { } /* Handler */ - Callback checkedCallback(args[1]); - if (checkedCallback.isInvalid()) { + Callback checkedCallback(args.GetIsolate(), args[1]); + if (checkedCallback.isInvalid(args)) { return; } UniquePersistent cb = checkedCallback.getFunction();