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 <[email protected]>
Reviewed-By: Darshan Sen <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Juan José Arboleda <[email protected]>
  • Loading branch information
XadillaX authored and mhdawson committed May 19, 2021
1 parent 42cceff commit a742c40
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 @@ -301,7 +301,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 @@ -403,7 +404,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 @@ -489,7 +490,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 a742c40

Please sign in to comment.