-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
inspector - Use script name for target title #8243
Conversation
std::string AbsolutePath(const char* path) { | ||
bool is_relative; | ||
if (path && path[0]) { | ||
char *file_name; |
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.
Style: char*
LGTM, ping @bnoordhuis |
@@ -220,8 +221,8 @@ static struct { | |||
void Initialize(int thread_pool_size) {} | |||
void PumpMessageLoop(Isolate* isolate) {} | |||
void Dispose() {} | |||
bool StartInspector(Environment *env, int port, bool wait) { | |||
env->ThrowError("Node compiled with NODE_USE_V8_PLATFORM=0"); | |||
void StartInspector(Environment *env, const char* script_path, |
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.
Accidental change from bool
to void
?
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.
Merge artifact. Thank you for pointing it out.
Thank you for the review. I uploaded a revised CL, please take a look. |
|
||
void Escape(std::string* string) { | ||
int i = 0; | ||
for (char c : *string) { |
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.
char& c
? Then you don't need i
.
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.
Done.
LGTM with some comments. The missing |
Thank you for the review. CL was updated. Please take another look. |
LGTM EDIT: If you s/inspector - Use/inspector: use/ the commit log. |
I can fix the commit abstract at landing time. New CI: https://ci.nodejs.org/job/node-test-pull-request/3887/ |
@eugeneo: can you fix the linter errors from the CI? |
Changes inspector integration to use Node.js script file name as target title (reported in JSON and shown in developer tools UIs). It will also report file:// URL for the script as some tools seem to use that field to open the script in the editor.
Done. I'm sorry - forgot to run make cpplint... |
CI is green (enough). Failures are unrelated / buildbot issues. |
Landed as 609a265. |
Changes inspector integration to use Node.js script file name as target title (reported in JSON and shown in developer tools UIs). It will also report file:// URL for the script as some tools seem to use that field to open the script in the editor. PR-URL: #8243 Reviewed-By: bnoordhuis - Ben Noordhuis <[email protected]>
Changes inspector integration to use Node.js script file name as target title (reported in JSON and shown in developer tools UIs). It will also report file:// URL for the script as some tools seem to use that field to open the script in the editor. PR-URL: nodejs#8243 Reviewed-By: bnoordhuis - Ben Noordhuis <[email protected]> Conflicts: src/node.cc
Changes inspector integration to use Node.js script file name as target title (reported in JSON and shown in developer tools UIs). It will also report file:// URL for the script as some tools seem to use that field to open the script in the editor. PR-URL: #8243 Reviewed-By: bnoordhuis - Ben Noordhuis <[email protected]> Conflicts: src/node.cc
Checklist
make -j4 test
(UNIX), orvcbuild test nosign
(Windows) passesAffected core subsystem(s)
This only touches JSON API of the V8 Inspector integration.
Description of change
Changes inspector integration to use Node.js script file name as target
title (reported in JSON and shown in developer tools UIs). It will also
report file:// URL for the script as some tools seem to use that field
to open the script in the editor.
CC: @ofrobots