Skip to content

Commit 7d82200

Browse files
XadillaXrichardlau
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 4d9129e commit 7d82200

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
@@ -293,7 +293,8 @@ void ContextifyContext::MakeContext(const FunctionCallbackInfo<Value>& args) {
293293
}
294294

295295
TryCatchScope try_catch(env);
296-
auto context_ptr = std::make_unique<ContextifyContext>(env, sandbox, options);
296+
std::unique_ptr<ContextifyContext> context_ptr =
297+
std::make_unique<ContextifyContext>(env, sandbox, options);
297298

298299
if (try_catch.HasCaught()) {
299300
if (!try_catch.HasTerminated())
@@ -395,7 +396,7 @@ void ContextifyContext::PropertySetterCallback(
395396
return;
396397

397398
Local<Context> context = ctx->context();
398-
auto attributes = PropertyAttribute::None;
399+
PropertyAttribute attributes = PropertyAttribute::None;
399400
bool is_declared_on_global_proxy = ctx->global_proxy()
400401
->GetRealNamedPropertyAttributes(context, property)
401402
.To(&attributes);
@@ -481,7 +482,7 @@ void ContextifyContext::PropertyDefinerCallback(
481482
Local<Context> context = ctx->context();
482483
Isolate* isolate = context->GetIsolate();
483484

484-
auto attributes = PropertyAttribute::None;
485+
PropertyAttribute attributes = PropertyAttribute::None;
485486
bool is_declared =
486487
ctx->global_proxy()->GetRealNamedPropertyAttributes(context,
487488
property)

0 commit comments

Comments
 (0)