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 <pimterry@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
This commit is contained in:
Joyee Cheung authored and RafaelGSS committed 2025-05-02 17:06:45 -03:00
1 parent 352df168da
commit 924ebcd7f7
1 file changed
+2 -2
+2 -2
View File
@@ -768,7 +768,7 @@ void Http2Stream::EmitStatistics() {
void Http2Session::HasPendingData(const FunctionCallbackInfo<Value>& 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<Object> target,
void Http2Session::SetGracefulClose(const FunctionCallbackInfo<Value>& 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);