From 924ebcd7f78b04cd60df14f87701f68f3beec46a Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Fri, 25 Apr 2025 03:52:09 +0200 Subject: [PATCH] http2: use args.This() instead of args.Holder() args.Holder() has been removed in newer version of V8. PR-URL: https://github.com/nodejs/node/pull/58004 Reviewed-By: Tim Perry Reviewed-By: Richard Lau Reviewed-By: Chengzhong Wu Reviewed-By: James M Snell Reviewed-By: Yagiz Nizipli --- src/node_http2.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node_http2.cc b/src/node_http2.cc index 6bbb6fc16c1..4415ea096d0 100644 --- a/src/node_http2.cc +++ b/src/node_http2.cc @@ -768,7 +768,7 @@ void Http2Stream::EmitStatistics() { void Http2Session::HasPendingData(const FunctionCallbackInfo& args) { Http2Session* session; - ASSIGN_OR_RETURN_UNWRAP(&session, args.Holder()); + ASSIGN_OR_RETURN_UNWRAP(&session, args.This()); args.GetReturnValue().Set(session->HasPendingData()); } @@ -3578,7 +3578,7 @@ void Initialize(Local target, void Http2Session::SetGracefulClose(const FunctionCallbackInfo& args) { Http2Session* session; - ASSIGN_OR_RETURN_UNWRAP(&session, args.Holder()); + ASSIGN_OR_RETURN_UNWRAP(&session, args.This()); CHECK_NOT_NULL(session); // Set the graceful close flag session->SetGracefulCloseInitiated(true);