File tree 3 files changed +9
-7
lines changed
3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -367,8 +367,9 @@ class NodeInspectorClient : public V8InspectorClient {
367
367
int connectFrontend (std::unique_ptr<InspectorSessionDelegate> delegate) {
368
368
events_dispatched_ = true ;
369
369
int session_id = next_session_id_++;
370
- channels_[session_id] =
371
- std::make_unique<ChannelImpl>(client_, std::move (delegate));
370
+ // TODO(addaleax): Revert back to using make_unique once we get issues
371
+ // with CI resolved (i.e. revert the patch that added this comment).
372
+ channels_[session_id].reset (new ChannelImpl (client_, std::move (delegate)));
372
373
return session_id;
373
374
}
374
375
@@ -569,7 +570,8 @@ void Agent::Stop() {
569
570
std::unique_ptr<InspectorSession> Agent::Connect (
570
571
std::unique_ptr<InspectorSessionDelegate> delegate) {
571
572
int session_id = client_->connectFrontend (std::move (delegate));
572
- return std::make_unique<InspectorSession>(session_id, client_);
573
+ return std::unique_ptr<InspectorSession>(
574
+ new InspectorSession (session_id, client_));
573
575
}
574
576
575
577
void Agent::WaitForDisconnect () {
Original file line number Diff line number Diff line change @@ -357,8 +357,8 @@ std::vector<std::string> InspectorIo::GetTargetIds() const {
357
357
TransportAction InspectorIo::Attach (int session_id) {
358
358
Agent* agent = parent_env_->inspector_agent ();
359
359
fprintf (stderr, " Debugger attached.\n " );
360
- sessions_[session_id] =
361
- agent-> Connect (std::make_unique< IoSessionDelegate> (this , session_id));
360
+ sessions_[session_id] = agent-> Connect (std::unique_ptr<IoSessionDelegate>(
361
+ new IoSessionDelegate (this , session_id) ));
362
362
return TransportAction::kAcceptSession ;
363
363
}
364
364
Original file line number Diff line number Diff line change @@ -66,8 +66,8 @@ class JSBindingsConnection : public AsyncWrap {
66
66
callback_(env->isolate (), callback) {
67
67
Wrap (wrap, this );
68
68
Agent* inspector = env->inspector_agent ();
69
- session_ = inspector->Connect (
70
- std::make_unique< JSBindingsSessionDelegate> (env, this ));
69
+ session_ = inspector->Connect (std::unique_ptr<JSBindingsSessionDelegate>(
70
+ new JSBindingsSessionDelegate (env, this ) ));
71
71
}
72
72
73
73
void OnMessage (Local<Value> value) {
You can’t perform that action at this time.
0 commit comments