Skip to content

Commit e24abc9

Browse files
committed
quic: fix QUIC code broken by V8 update
1 parent ca63d86 commit e24abc9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/quic/application.cc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ MaybeLocal<Object> Session::Application_Options::ToObject(
156156
static_assert(std::size(values) == std::size(names));
157157

158158
auto obj = tmpl->NewInstance(env->context(), values);
159-
if (obj->SetPrototypeV2(env->context(), Null(env->isolate())).IsNothing()) {
159+
if (obj->SetPrototype(env->context(), Null(env->isolate())).IsNothing()) {
160160
return {};
161161
}
162162
return obj;

‎src/quic/transportparams.cc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ v8::MaybeLocal<v8::Object> TransportParams::ToObject(Environment* env) const {
485485
}
486486

487487
auto obj = tmpl->NewInstance(env->context(), values);
488-
if (obj->SetPrototypeV2(env->context(), Null(env->isolate())).IsNothing()) {
488+
if (obj->SetPrototype(env->context(), Null(env->isolate())).IsNothing()) {
489489
return {};
490490
}
491491
return obj;

0 commit comments

Comments
 (0)