Skip to content

Commit

Permalink
src: replace autos in node_contextify.cc
Browse files Browse the repository at this point in the history
PR-URL: #38644
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
  • Loading branch information
XadillaX authored and richardlau committed Jul 20, 2021
1 parent 4d9129e commit 7d82200
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/node_contextify.cc
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,8 @@ void ContextifyContext::MakeContext(const FunctionCallbackInfo<Value>& args) {
}

TryCatchScope try_catch(env);
auto context_ptr = std::make_unique<ContextifyContext>(env, sandbox, options);
std::unique_ptr<ContextifyContext> context_ptr =
std::make_unique<ContextifyContext>(env, sandbox, options);

if (try_catch.HasCaught()) {
if (!try_catch.HasTerminated())
Expand Down Expand Up @@ -395,7 +396,7 @@ void ContextifyContext::PropertySetterCallback(
return;

Local<Context> 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);
Expand Down Expand Up @@ -481,7 +482,7 @@ void ContextifyContext::PropertyDefinerCallback(
Local<Context> context = ctx->context();
Isolate* isolate = context->GetIsolate();

auto attributes = PropertyAttribute::None;
PropertyAttribute attributes = PropertyAttribute::None;
bool is_declared =
ctx->global_proxy()->GetRealNamedPropertyAttributes(context,
property)
Expand Down

0 comments on commit 7d82200

Please sign in to comment.