From b669f96009c29268cde392a2e73c0a3ddf2217d0 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Wed, 24 Oct 2018 20:07:17 +0200 Subject: [PATCH] src: avoid `std::make_unique` for now This broke Travis CI. We have run into this problem with `std::make_unique` in the past, and opted to not use it for now, e.g. in https://github.com/nodejs/node/pull/20386. --- src/env.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/env.cc b/src/env.cc index 79739e7d382991..d153bb870d95ee 100644 --- a/src/env.cc +++ b/src/env.cc @@ -193,7 +193,7 @@ Environment::Environment(IsolateData* isolate_data, AssignToContext(context, ContextInfo("")); if (tracing::AgentWriterHandle* writer = GetTracingAgentWriter()) { - trace_state_observer_ = std::make_unique(this); + trace_state_observer_.reset(new TrackingTraceStateObserver(this)); v8::TracingController* tracing_controller = writer->GetTracingController(); if (tracing_controller != nullptr) tracing_controller->AddTraceStateObserver(trace_state_observer_.get());