diff --git a/src/node_contextify.cc b/src/node_contextify.cc index 23895382b33c86..ce25f0545bf68a 100644 --- a/src/node_contextify.cc +++ b/src/node_contextify.cc @@ -294,7 +294,8 @@ void ContextifyContext::MakeContext(const FunctionCallbackInfo& args) { } TryCatchScope try_catch(env); - auto context_ptr = std::make_unique(env, sandbox, options); + std::unique_ptr context_ptr = + std::make_unique(env, sandbox, options); if (try_catch.HasCaught()) { if (!try_catch.HasTerminated()) @@ -396,7 +397,7 @@ void ContextifyContext::PropertySetterCallback( return; Local context = ctx->context(); - auto attributes = PropertyAttribute::None; + PropertyAttribute attributes = PropertyAttribute::None; bool is_declared_on_global_proxy = ctx->global_proxy() ->GetRealNamedPropertyAttributes(context, property) .To(&attributes); @@ -482,7 +483,7 @@ void ContextifyContext::PropertyDefinerCallback( Local context = ctx->context(); Isolate* isolate = context->GetIsolate(); - auto attributes = PropertyAttribute::None; + PropertyAttribute attributes = PropertyAttribute::None; bool is_declared = ctx->global_proxy()->GetRealNamedPropertyAttributes(context, property)