- 
          
- 
        Couldn't load subscription status. 
- Fork 33.6k
src: use cached primordials_string #60255
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
Conversation
| Codecov Report✅ All modified and coverable lines are covered by tests. 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     
 🚀 New features to boost your workflow:
 | 
        
          
                src/api/environment.cc
              
                Outdated
          
        
      | Local<Object> exports; | ||
|  | ||
| if (!GetPerContextExports(context).ToLocal(&exports)) { | ||
| if (!GetPerContextExports(context, isolate_data).ToLocal(&exports)) { | 
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
aafd498    to
    8f7e297      
    Compare
  
    | Failed to start CI⚠ Commits were pushed since the last approving review: ⚠ - src: use cached primordials_string ✘ Refusing to run CI on potentially unsafe PRhttps://github.com/nodejs/node/actions/runs/18570933910 | 
| Landed in 4b8603f | 
PR-URL: #60255 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
Use cached
primordialsstring from IsolateData and pass isolate_data to GetPerContextExports() to avoid unnecessary string creation and keep the bootstrap path consistent.No functional change.