-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
src: reuse std::make_unique in inspector_agent.cc #24132
Conversation
Ref: nodejs@283a967 PR-URL: nodejs#24132 Refs: nodejs@283a967 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com>
Landed in 08bd823. Thanks for the contribution! 🎉 (If you're interested in other possible contributions to Node.js but don't have a good idea of where to start looking, some ideas are posted at https://www.nodetodo.org/next-steps/.) |
Ref: nodejs@283a967 PR-URL: nodejs#24132 Refs: nodejs@283a967 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com>
@alyssaq The rest of nodejs uses
Is it possible to replace the function like so? I am not a c++ coder myself :) diff --git a/src/inspector_agent.cc b/src/inspector_agent.cc
index e0ee24a7f0..5c8020f25d 100644
--- a/src/inspector_agent.cc
+++ b/src/inspector_agent.cc
@@ -12,6 +12,7 @@
#include "node_url.h"
#include "v8-inspector.h"
#include "v8-platform.h"
+#include "src/base/template-utils.h"
#include "libplatform/libplatform.h"
@@ -476,7 +477,7 @@ class NodeInspectorClient : public V8InspectorClient {
events_dispatched_ = true;
int session_id = next_session_id_++;
channels_[session_id] =
- std::make_unique<ChannelImpl>(env_, client_, getWorkerManager(),
+ base::make_unique<ChannelImpl>(env_, client_, getWorkerManager(),
std::move(delegate), prevent_shutdown);
return session_id;
} |
@ludo I don't think we are able to include headers under @nodejs/build I am curious why this was not uncovered from compiler selections in the CI? (I think we ran into something similar once before that was fixed by @addaleax ?) |
@luto The current lowest GCC version we support is 4.9.4 (which is covered on Ubuntu and RHEL in our CI), the default on CentOS 7 is 4.8.x. Can you try upgrading to a newer version of devtoolset if you are on CentOS? I am afraid we will probably leave it as-is since this is within our GCC support and is what we have moved on to - not sure if we are willing to accept a patch to roll our own version of |
Ref: 283a967