mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 10:15:07 +08:00
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>
This commit is contained in:
1 parent
b823c3a21e
commit
8c1a7d3172
2 files changed
+2
-2
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user