Skip to content
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

tools: roll inspector_protocol to f67ec5 #26303

Merged
merged 1 commit into from
Mar 4, 2019

Conversation

pavelfeldman
Copy link
Contributor

Fixes: #25808

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. labels Feb 25, 2019
return message;
}

ProtocolMessage binaryToMessage(std::vector<uint8_t> message) {
Copy link
Member

Choose a reason for hiding this comment

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

This should probably be

Suggested change
ProtocolMessage binaryToMessage(std::vector<uint8_t> message) {
ProtocolMessage binaryToMessage(const std::vector<uint8_t>& message) {

?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not really, we are std::move-ing binary messages around. It is likely that we switch to using std::unique_ptr<std::vector> for clarity at some point.

class Binary {
public:
const uint8_t* data() const {
DCHECK(false);
Copy link
Member

Choose a reason for hiding this comment

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

Does it make sense to UNREACHABLE();? You can drop the return statements in that case.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, perfect, that's what it is in v8/chromium, I was not sure if node prefers that as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correction, it was UNIMPLEMENTED in v8/chromium. Anyhow, using UNREACHABLE now

@targos
Copy link
Member

targos commented Feb 25, 2019

Is there a guide/documentation on how to update this dependency? This PR removes more lines than it adds while my try here adds 7k.

@pavelfeldman
Copy link
Contributor Author

Is there a guide/documentation on how to update this dependency?

we have scripts doing that in the v8 / chromium lands, let us add another one for Node.

@pavelfeldman pavelfeldman changed the title Roll tools/inspector_protocol to f67ec5180f476830e839226b5ca948e43070… tools: roll inspector_protocol to f67ec5180f476830e839226b5ca948e43070… Feb 25, 2019
@pavelfeldman pavelfeldman changed the title tools: roll inspector_protocol to f67ec5180f476830e839226b5ca948e43070… tools: roll inspector_protocol to f67ec5 Feb 25, 2019
Copy link
Contributor

@refack refack left a comment

Choose a reason for hiding this comment

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

RSLGTM

@refack
Copy link
Contributor

refack commented Feb 26, 2019

@pavelfeldman, thank you for the bump.
Could you have forgotten to add renamed files?

From Travis:

make[1]: *** No rule to make target `../tools/inspector_protocol/code_generator.py', needed by `26acdf201a53d5709754b88c308e871df22184f9.intermediate'.  Stop.

@pavelfeldman
Copy link
Contributor Author

Turns out I lost all the added third party files while shuffling them between the repos :/ ...

@addaleax
Copy link
Member

addaleax commented Mar 2, 2019

@pavelfeldman What’s the status of this PR?

@targos
Copy link
Member

targos commented Mar 4, 2019

I think it's ready? I confirm this PR fixes the canary builds.

@refack refack self-assigned this Mar 4, 2019
@refack
Copy link
Contributor

refack commented Mar 4, 2019

Fixes: nodejs#25808

PR-URL: nodejs#26303
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Refael Ackermann <refack@gmail.com>
@refack refack merged commit d775d74 into nodejs:master Mar 4, 2019
@refack refack removed their assignment Mar 11, 2019
BridgeAR pushed a commit to BridgeAR/node that referenced this pull request Mar 12, 2019
Fixes: nodejs#25808

PR-URL: nodejs#26303
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Refael Ackermann <refack@gmail.com>
BethGriggs pushed a commit that referenced this pull request Apr 16, 2019
Fixes: #25808

PR-URL: #26303
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Refael Ackermann <refack@gmail.com>
@BethGriggs BethGriggs mentioned this pull request May 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants