Skip to content

fix(v8): concatenate adjacent strings in V8 DEPS files - #1212

Merged
joyeecheung merged 1 commit into
nodejs:mainfrom
joyeecheung:fix-deps-parse
Oct 5, 2026
Merged

joyeecheung merged 1 commit into
nodejs:mainfrom
joyeecheung:fix-deps-parse

Conversation

@joyeecheung

Copy link
Copy Markdown
Member

These follow Python string concatenation rules.

These follow Python string concatenation rules.
@codecov

codecov Bot commented Oct 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.12%. Comparing base (4b5695c) to head (cd0fa5c).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1212   +/-   ##
=======================================
  Coverage   63.12%   63.12%           
=======================================
  Files          65       65           
  Lines       12257    12257           
=======================================
  Hits         7737     7737           
  Misses       4520     4520           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread lib/update-v8/deps.js
const depsDeclaration = depsStr.substring(start, end)
.replace(/^ *#.*/gm, '')
// Join adjacent string literals
.replace(/'\s*\n\s*'/g, '');

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could this just be /'\s+'/g?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I think yes, but the current one already works. Just merged it to unblock the workflow. Feel free to open a PR if you think that works better.

@joyeecheung
joyeecheung merged commit 69bd53c into nodejs:main Oct 5, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants