File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments