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 committed Oct 11, 2022
1 parent 4bdd4a3 commit 525fbfd
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 @@ -864,7 +864,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 @@ -1247,7 +1247,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 525fbfd

Please sign in to comment.