diff --git a/src/node_contextify.cc b/src/node_contextify.cc index ddfe043cc41e69..e5fbaa196f87a6 100644 --- a/src/node_contextify.cc +++ b/src/node_contextify.cc @@ -293,7 +293,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()) @@ -395,7 +396,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); @@ -481,7 +482,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)