Skip to content

Commit 4e3052a

Browse files
jasnelltargos
authored andcommitted
quic: fixup errant LocalVector usage
PR-URL: #56564 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent a9d80d4 commit 4e3052a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/quic/session.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2728,7 +2728,7 @@ void Session::EmitVersionNegotiation(const ngtcp2_pkt_hd& hd,
27282728

27292729
LocalVector<Value> versions(env()->isolate(), nsv);
27302730
for (size_t n = 0; n < nsv; n++) {
2731-
versions.push_back(Integer::NewFromUnsigned(env()->isolate(), sv[n]));
2731+
versions[n] = Integer::NewFromUnsigned(env()->isolate(), sv[n]);
27322732
}
27332733

27342734
// supported are the versions we acutually support expressed as a range.

0 commit comments

Comments
 (0)