Skip to content

Commit a47fd67

Browse files
XadillaXdanielleadams
authored andcommitted
src: replace autos in node_contextify.cc
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]>
1 parent 5553be3 commit a47fd67

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/node_contextify.cc

+4-3
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,8 @@ void ContextifyContext::MakeContext(const FunctionCallbackInfo<Value>& args) {
301301
}
302302

303303
TryCatchScope try_catch(env);
304-
auto context_ptr = std::make_unique<ContextifyContext>(env, sandbox, options);
304+
std::unique_ptr<ContextifyContext> context_ptr =
305+
std::make_unique<ContextifyContext>(env, sandbox, options);
305306

306307
if (try_catch.HasCaught()) {
307308
if (!try_catch.HasTerminated())
@@ -403,7 +404,7 @@ void ContextifyContext::PropertySetterCallback(
403404
return;
404405

405406
Local<Context> context = ctx->context();
406-
auto attributes = PropertyAttribute::None;
407+
PropertyAttribute attributes = PropertyAttribute::None;
407408
bool is_declared_on_global_proxy = ctx->global_proxy()
408409
->GetRealNamedPropertyAttributes(context, property)
409410
.To(&attributes);
@@ -489,7 +490,7 @@ void ContextifyContext::PropertyDefinerCallback(
489490
Local<Context> context = ctx->context();
490491
Isolate* isolate = context->GetIsolate();
491492

492-
auto attributes = PropertyAttribute::None;
493+
PropertyAttribute attributes = PropertyAttribute::None;
493494
bool is_declared =
494495
ctx->global_proxy()->GetRealNamedPropertyAttributes(context,
495496
property)

0 commit comments

Comments
 (0)