Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a47fd67

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

File tree

Expand file treeCollapse file tree

1 file changed

+4
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-3
lines changed
Open diff view settings
Collapse file

‎src/node_contextify.cc‎

Copy file name to clipboardExpand all lines: src/node_contextify.cc
+4-3Lines changed: 4 additions & 3 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.