Skip to content

Commit

Permalink
src: use imported namespaces in node_contextify.cc
Browse files Browse the repository at this point in the history
PR-URL: nodejs#44299
Reviewed-By: Feng Yu <F3n67u@outlook.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
juanarbol authored and Fyko committed Sep 15, 2022
1 parent 325947c commit f52bb38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node_contextify.cc
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ void ContextifyScript::RunInContext(const FunctionCallbackInfo<Value>& args) {
CHECK(args[0]->IsObject() || args[0]->IsNull());

Local<Context> context;
std::shared_ptr<v8::MicrotaskQueue> microtask_queue;
std::shared_ptr<MicrotaskQueue> microtask_queue;

if (args[0]->IsObject()) {
Local<Object> sandbox = args[0].As<Object>();
Expand Down Expand Up @@ -1242,7 +1242,7 @@ static void MeasureMemory(const FunctionCallbackInfo<Value>& args) {
static_cast<v8::MeasureMemoryMode>(mode));
isolate->MeasureMemory(std::move(delegate),
static_cast<v8::MeasureMemoryExecution>(execution));
v8::Local<v8::Promise> promise = resolver->GetPromise();
Local<Promise> promise = resolver->GetPromise();

args.GetReturnValue().Set(promise);
}
Expand Down

0 comments on commit f52bb38

Please sign in to comment.