Skip to content

Commit f89e555

Browse files
targosCommit Bot
authored andcommitted
[api] Fix compilation issue with macOS
Fixes the following error caught by the Node.js CI: ../deps/v8/src/api.cc:8943:10: error: no viable conversion from returned value of type 'unique_ptr<v8::internal::MicrotaskQueue, default_delete<v8::internal::MicrotaskQueue>>' to function return type 'unique_ptr<v8::MicrotaskQueue, default_delete<v8::MicrotaskQueue>>' return microtask_queue; ^~~~~~~~~~~~~~~ Change-Id: Ic09dab46bb8f87a2b3b59f5836e0883bfe0e9681 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1627533 Commit-Queue: Michaël Zasso <[email protected]> Commit-Queue: Yang Guo <[email protected]> Reviewed-by: Yang Guo <[email protected]> Cr-Commit-Position: refs/heads/master@{#61789}
1 parent 5cf05dc commit f89e555

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/api/api.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8536,7 +8536,8 @@ std::unique_ptr<MicrotaskQueue> MicrotaskQueue::New(Isolate* isolate,
85368536
auto microtask_queue =
85378537
i::MicrotaskQueue::New(reinterpret_cast<i::Isolate*>(isolate));
85388538
microtask_queue->set_microtasks_policy(policy);
8539-
return microtask_queue;
8539+
std::unique_ptr<MicrotaskQueue> ret(std::move(microtask_queue));
8540+
return ret;
85408541
}
85418542

85428543
MicrotasksScope::MicrotasksScope(Isolate* isolate, MicrotasksScope::Type type)

0 commit comments

Comments
 (0)