Skip to content

Conversation

KimSH39
Copy link
Contributor

@KimSH39 KimSH39 commented Oct 14, 2025

Use cached primordials string from IsolateData and pass isolate_data to GetPerContextExports() to avoid unnecessary string creation and keep the bootstrap path consistent.

No functional change.

@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. labels Oct 14, 2025
@addaleax addaleax added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Oct 14, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Oct 14, 2025
@nodejs-github-bot
Copy link
Collaborator

Copy link

codecov bot commented Oct 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.58%. Comparing base (0c35aaf) to head (8f7e297).
⚠️ Report is 9 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##             main   #60255    +/-   ##
========================================
  Coverage   88.57%   88.58%            
========================================
  Files         704      704            
  Lines      208183   208324   +141     
  Branches    40015    40039    +24     
========================================
+ Hits       184404   184534   +130     
- Misses      15808    15809     +1     
- Partials     7971     7981    +10     
Files with missing lines Coverage Δ
src/api/environment.cc 77.29% <100.00%> (ø)

... and 39 files with indirect coverage changes

🚀 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.

Local<Object> exports;

if (!GetPerContextExports(context).ToLocal(&exports)) {
if (!GetPerContextExports(context, isolate_data).ToLocal(&exports)) {
Copy link
Member

Choose a reason for hiding this comment

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

This seems to be unrelated to the commit/pull-request title.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi! Thanks for pointing that out. I backed out the unrelated part and kept only the cached primordials. Updated the PR.

@nodejs-github-bot
Copy link
Collaborator

@KimSH39 KimSH39 force-pushed the primordials-cached branch from aafd498 to 8f7e297 Compare October 15, 2025 11:17
@addaleax addaleax added the request-ci Add this label to start a Jenkins CI on a PR. label Oct 16, 2025
@github-actions github-actions bot added request-ci-failed An error occurred while starting CI via request-ci label, and manual interventon is needed. and removed request-ci Add this label to start a Jenkins CI on a PR. labels Oct 16, 2025
Copy link
Contributor

Failed to start CI
   ⚠  Commits were pushed since the last approving review:
   ⚠  - src: use cached primordials_string
   ✘  Refusing to run CI on potentially unsafe PR
https://github.com/nodejs/node/actions/runs/18570933910

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++. needs-ci PRs that need a full CI run. request-ci-failed An error occurred while starting CI via request-ci label, and manual interventon is needed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants