-
Notifications
You must be signed in to change notification settings - Fork 30k
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
node: Update strings node.js -> bootstrap_node.js #5962
Conversation
/cc @Fishrock123 |
at startup (node.js:*:*) | ||
at node.js:*:* | ||
at startup (bootstrap_node.js:*:*) | ||
at bootstrap_node.js:*:* |
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.
curious that the message tests pass without this change?
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.
Guessing it was ExecuteString()
setting the script name to node.js
.
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.
Yes, ExecuteString
calls v8::Script::Compile
which allows us to specify the ScriptOrigin, which comes from the FIXED_ONE_BYTE_STRING I changed. grep ExecuteString ./src/* -r
says it isn't called anywhere else, perhaps ExecuteString
should be merged into LoadEnvironment
?
These commits need to be separate PRs. |
I'm also pretty sure this is a breaking change, cc @nodejs/ctc Is this 100% necessary, even if previously it was now not technically correct? |
@joshgav was the |
Clarify comments re invoking bootstrap_node.js. Fix filename to bootstrap_node.js per nodejs#5103. Fix tests `node.js` -> `bootstrap_node.js` Fix comment on why we check the loop again before exiting. `context-inl.h` -> `env-inl.h`
moved |
@Fishrock123 would |
cc @nodejs/ctc I think leaving it alone would probably be o.k., but if it should be changed that's fine. It shouldn't contain the path though, no |
Is the question whether or not |
The question is two-fold:
Personally I prefer including @Fishrock123 Do we have the option of perhaps renaming as |
IMO we should update it to most accurately reflect reality if possible. |
Is this only exposed to error logs? I am relatively concerned we might be breaking something because I'm not entirely sure what this changes. |
7da4fd4
to
c7066fb
Compare
I moved this fix to another branch in my fork; if we want to continue the discussion let me know and I'll open a corresponding new PR. Thanks! |
Oh shoot I guess? we should do this but I'm not the best person to ask about that |
Pull Request check-list
make -j8 test
(UNIX) orvcbuild test nosign
(Windows) pass withthis change (including linting)?
test (or a benchmark) included?
Affected core subsystem(s)
node.cc
Description of change
Update filename in node.cc and tests to bootstrap_node.js per #5103 and update nearby comments. Fixed some other comments while I was at it.
Will need to rebase once #5881 lands.