-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
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
base: main
Are you sure you want to change the base?
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 |
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.