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: #44299
Reviewed-By: Feng Yu <F3n67u@outlook.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
juanarbol authored and ruyadorno committed Aug 22, 2022
1 parent 8977a87 commit e9d19ac
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 e9d19ac

Please sign in to comment.