diff options
author | XadillaX <i@2333.moe> | 2021-05-12 15:42:25 +0800 |
---|---|---|
committer | Michael Dawson <mdawson@devrus.com> | 2021-05-19 16:39:07 -0400 |
commit | a742c406319982cd52f26cb2f37df8f98017d977 (patch) | |
tree | 8df1747e34dba223f39041f994aca0b834c1ae8a /src/node_contextify.cc | |
parent | 42cceff1f77881b241d6cf0d281eff8c0ea87a61 (diff) | |
download | node-new-a742c406319982cd52f26cb2f37df8f98017d977.tar.gz |
src: replace `auto`s in node_contextify.cc
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'src/node_contextify.cc')
-rw-r--r-- | src/node_contextify.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/node_contextify.cc b/src/node_contextify.cc index 6e2b167da5..984569ea6b 100644 --- a/src/node_contextify.cc +++ b/src/node_contextify.cc @@ -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()) @@ -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); @@ -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) |