Commit 8c1a7d31723 for nodejs
commit 8c1a7d3172399a1bedc313c92016b5651a28aaa3
Author: Yuya Inoue <65857152+inoway46@users.noreply.github.com>
Date: Sat Oct 10 22:49:13 2026 +0900
quic: replace removed SetPrototypeV2 calls
Use SetPrototype when creating application options and transport
parameter objects. V8 15.5 removed the deprecated SetPrototypeV2
wrapper, which delegated to SetPrototype, breaking QUIC builds.
Assisted-by: Codex
Signed-off-by: inoway46 <inoueyuya416@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/66603
Refs: https://github.com/nodejs/node/pull/66537
Refs: https://github.com/nodejs/node/pull/66602
Reviewed-By: Tim Perry <pimterry@gmail.com>
Reviewed-By: Richard Lau <richard.lau@ibm.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
diff --git a/src/quic/application.cc b/src/quic/application.cc
index 212a9984d1a..11753aeb90f 100644
--- a/src/quic/application.cc
+++ b/src/quic/application.cc
@@ -156,7 +156,7 @@ MaybeLocal<Object> Session::Application_Options::ToObject(
static_assert(std::size(values) == std::size(names));
auto obj = tmpl->NewInstance(env->context(), values);
- if (obj->SetPrototypeV2(env->context(), Null(env->isolate())).IsNothing()) {
+ if (obj->SetPrototype(env->context(), Null(env->isolate())).IsNothing()) {
return {};
}
return obj;
diff --git a/src/quic/transportparams.cc b/src/quic/transportparams.cc
index 3d2e333b32c..45e6abc3109 100644
--- a/src/quic/transportparams.cc
+++ b/src/quic/transportparams.cc
@@ -485,7 +485,7 @@ v8::MaybeLocal<v8::Object> TransportParams::ToObject(Environment* env) const {
}
auto obj = tmpl->NewInstance(env->context(), values);
- if (obj->SetPrototypeV2(env->context(), Null(env->isolate())).IsNothing()) {
+ if (obj->SetPrototype(env->context(), Null(env->isolate())).IsNothing()) {
return {};
}
return obj;