@@ -28,21 +28,21 @@ struct WebSocketWrapper {
2828 template <bool SSL>
2929 static inline uWS::WebSocket<SSL, true , PerSocketData> *getWebSocket (const FunctionCallbackInfo<Value> &args) {
3030 Isolate *isolate = args.GetIsolate ();
31- auto *ws = (uWS::WebSocket<SSL, true , PerSocketData> *) args.Holder ()->GetAlignedPointerFromInternalField (0 );
31+ auto *ws = (uWS::WebSocket<SSL, true , PerSocketData> *) args.This ()->GetAlignedPointerFromInternalField (0 );
3232 if (!ws) {
3333 args.GetReturnValue ().Set (isolate->ThrowException (v8::Exception::Error (String::NewFromUtf8 (isolate, " Invalid access of closed uWS.WebSocket/SSLWebSocket." , NewStringType::kNormal ).ToLocalChecked ())));
3434 }
3535 return ws;
3636 }
3737
3838 static inline void invalidateWsObject (const FunctionCallbackInfo<Value> &args) {
39- args.Holder ()->SetAlignedPointerInInternalField (0 , nullptr );
39+ args.This ()->SetAlignedPointerInInternalField (0 , nullptr );
4040 }
4141
4242 /* Takes nothing returns holder (only used to fool TypeScript, as a conversion from WS to UserData) */
4343 template <bool SSL>
4444 static void uWS_WebSocket_getUserData (const FunctionCallbackInfo<Value> &args) {
45- args.GetReturnValue ().Set (args.Holder ());
45+ args.GetReturnValue ().Set (args.This ());
4646 }
4747
4848 /* Takes string topic */
@@ -285,7 +285,7 @@ struct WebSocketWrapper {
285285 cb->Call (isolate->GetCurrentContext (), isolate->GetCurrentContext ()->Global (), 0 , nullptr ).IsEmpty ();
286286 });
287287
288- args.GetReturnValue ().Set (args.Holder ());
288+ args.GetReturnValue ().Set (args.This ());
289289 }
290290 }
291291
0 commit comments