From c33e3818ed2199188652ee331375b86ce4f8b03a Mon Sep 17 00:00:00 2001 From: XadillaX Date: Wed, 12 May 2021 15:42:25 +0800 Subject: [PATCH] src: replace `auto`s in node_contextify.cc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/38644 Reviewed-By: James M Snell Reviewed-By: Darshan Sen Reviewed-By: Anna Henningsen Reviewed-By: Juan José Arboleda --- src/node_contextify.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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)