Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quic: fixup errant LocalVector usage #56564

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jasnell
Copy link
Member

@jasnell jasnell commented Jan 11, 2025

No description provided.

@jasnell jasnell requested review from addaleax and anonrig January 11, 2025 21:18
@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. quic Issues and PRs related to the QUIC implementation / HTTP/3. labels Jan 11, 2025
@jasnell jasnell added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. and removed c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. labels Jan 11, 2025
@nodejs-github-bot
Copy link
Collaborator

@jasnell jasnell added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue Add this label to land a pull request using GitHub Actions. labels Jan 11, 2025
@@ -2728,7 +2728,7 @@ void Session::EmitVersionNegotiation(const ngtcp2_pkt_hd& hd,

LocalVector<Value> versions(env()->isolate(), nsv);
for (size_t n = 0; n < nsv; n++) {
versions.push_back(Integer::NewFromUnsigned(env()->isolate(), sv[n]));
versions[0] = Integer::NewFromUnsigned(env()->isolate(), sv[n]);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
versions[0] = Integer::NewFromUnsigned(env()->isolate(), sv[n]);
versions[n] = Integer::NewFromUnsigned(env()->isolate(), sv[n]);

Copy link

codecov bot commented Jan 11, 2025

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 89.18%. Comparing base (7b472fd) to head (e89b2bc).
Report is 24 commits behind head on main.

Files with missing lines Patch % Lines
src/quic/session.cc 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #56564      +/-   ##
==========================================
+ Coverage   89.16%   89.18%   +0.01%     
==========================================
  Files         661      662       +1     
  Lines      191421   191759     +338     
  Branches    36845    36902      +57     
==========================================
+ Hits       170673   171011     +338     
+ Misses      13615    13614       -1     
- Partials     7133     7134       +1     
Files with missing lines Coverage Δ
src/quic/session.cc 36.17% <0.00%> (ø)

... and 37 files with indirect coverage changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. c++ Issues and PRs that require attention from people who are familiar with C++. commit-queue Add this label to land a pull request using GitHub Actions. needs-ci PRs that need a full CI run. quic Issues and PRs related to the QUIC implementation / HTTP/3.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants