Skip to content

Commit 5b0510d

Browse files
tzikCommit Bot
authored andcommitted
Give the implementation of v8::MicrotaskQueue::New
This adds the entrypoint to MicrotaskQueue, which used to miss the implementation. Bug: v8:8124 Change-Id: I114fb69d975ee75c86b19349ca76789e425ea910 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1505232 Reviewed-by: Yang Guo <yangguo@chromium.org> Commit-Queue: Taiju Tsuiki <tzik@chromium.org> Cr-Commit-Position: refs/heads/master@{#60076}
1 parent 91f0cd0 commit 5b0510d

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

include/v8.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6779,7 +6779,7 @@ class V8_EXPORT MicrotaskQueue {
67796779
/**
67806780
* Creates an empty MicrotaskQueue instance.
67816781
*/
6782-
static std::unique_ptr<MicrotaskQueue> New();
6782+
static std::unique_ptr<MicrotaskQueue> New(Isolate* isolate);
67836783

67846784
virtual ~MicrotaskQueue() = default;
67856785

src/api.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8929,6 +8929,11 @@ void v8::Isolate::LocaleConfigurationChangeNotification() {
89298929
#endif // V8_INTL_SUPPORT
89308930
}
89318931

8932+
// static
8933+
std::unique_ptr<MicrotaskQueue> MicrotaskQueue::New(Isolate* isolate) {
8934+
return i::MicrotaskQueue::New(reinterpret_cast<i::Isolate*>(isolate));
8935+
}
8936+
89328937
MicrotasksScope::MicrotasksScope(Isolate* isolate, MicrotasksScope::Type type)
89338938
: MicrotasksScope(
89348939
isolate,

0 commit comments

Comments
 (0)