mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
deps: V8: cherry-pick 5b0510d
Original commit message:
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}
Refs: https://github.com/v8/v8/commit/5b0510db7c9f6f9f43f322d32fe33a19e3935f89
PR-URL: https://github.com/nodejs/node/pull/26685
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
This commit is contained in:
1 parent
bf572c7831
commit
02171949a0
3 files changed
+7
-2
No files matched your search
+1
-1
@@ -37,7 +37,7 @@
|
||||
|
||||
# Reset this number to 0 on major V8 upgrades.
|
||||
# Increment by one for each non-official patch applied to deps/v8.
|
||||
'v8_embedder_string': '-node.3',
|
||||
'v8_embedder_string': '-node.4',
|
||||
|
||||
##### V8 defaults for Node.js #####
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -6779,7 +6779,7 @@ class V8_EXPORT MicrotaskQueue {
|
||||
/**
|
||||
* Creates an empty MicrotaskQueue instance.
|
||||
*/
|
||||
static std::unique_ptr<MicrotaskQueue> New();
|
||||
static std::unique_ptr<MicrotaskQueue> New(Isolate* isolate);
|
||||
|
||||
virtual ~MicrotaskQueue() = default;
|
||||
|
||||
|
||||
Vendored
+5
@@ -8931,6 +8931,11 @@ void v8::Isolate::LocaleConfigurationChangeNotification() {
|
||||
#endif // V8_INTL_SUPPORT
|
||||
}
|
||||
|
||||
// static
|
||||
std::unique_ptr<MicrotaskQueue> MicrotaskQueue::New(Isolate* isolate) {
|
||||
return i::MicrotaskQueue::New(reinterpret_cast<i::Isolate*>(isolate));
|
||||
}
|
||||
|
||||
MicrotasksScope::MicrotasksScope(Isolate* isolate, MicrotasksScope::Type type)
|
||||
: MicrotasksScope(
|
||||
isolate,
|
||||
|
||||
Reference in new issue
Block a user