diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-04-28 21:50:19 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-04-30 00:42:42 +0300 |
commit | 283a967e356311a467113eea450a81827d43c969 (patch) | |
tree | ec0bfe54d14bbd98d6f73995e5147e5f2372a134 /src/inspector_js_api.cc | |
parent | 45c7e03f400bbb0e7d037ae470d291bce2183155 (diff) |
src: avoid `std::make_unique`
Work around https://github.com/nodejs/build/issues/1254, which
effectively breaks stress test CI and CITGM, by avoiding
`std::make_unique` for now.
This workaround should be reverted once that issue is resolved.
Refs: https://github.com/nodejs/build/issues/1254
PR-URL: https://github.com/nodejs/node/pull/20386
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Matheus Marchini <matheus@sthima.com>
Diffstat (limited to 'src/inspector_js_api.cc')
-rw-r--r-- | src/inspector_js_api.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inspector_js_api.cc b/src/inspector_js_api.cc index 3d05b2f6fea..37cdcecd61d 100644 --- a/src/inspector_js_api.cc +++ b/src/inspector_js_api.cc @@ -66,8 +66,8 @@ class JSBindingsConnection : public AsyncWrap { callback_(env->isolate(), callback) { Wrap(wrap, this); Agent* inspector = env->inspector_agent(); - session_ = inspector->Connect( - std::make_unique<JSBindingsSessionDelegate>(env, this)); + session_ = inspector->Connect(std::unique_ptr<JSBindingsSessionDelegate>( + new JSBindingsSessionDelegate(env, this))); } void OnMessage(Local<Value> value) { |