diff --git a/common.gypi b/common.gypi index 3b8328cd278d90..23fe6b6e2ffbea 100644 --- a/common.gypi +++ b/common.gypi @@ -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 ##### diff --git a/deps/v8/include/v8.h b/deps/v8/include/v8.h index a5a88b685b85e6..e3f13827023654 100644 --- a/deps/v8/include/v8.h +++ b/deps/v8/include/v8.h @@ -6779,7 +6779,7 @@ class V8_EXPORT MicrotaskQueue { /** * Creates an empty MicrotaskQueue instance. */ - static std::unique_ptr New(); + static std::unique_ptr New(Isolate* isolate); virtual ~MicrotaskQueue() = default; diff --git a/deps/v8/src/api.cc b/deps/v8/src/api.cc index 8375f13ba56d89..716db0c85d7492 100644 --- a/deps/v8/src/api.cc +++ b/deps/v8/src/api.cc @@ -8931,6 +8931,11 @@ void v8::Isolate::LocaleConfigurationChangeNotification() { #endif // V8_INTL_SUPPORT } +// static +std::unique_ptr MicrotaskQueue::New(Isolate* isolate) { + return i::MicrotaskQueue::New(reinterpret_cast(isolate)); +} + MicrotasksScope::MicrotasksScope(Isolate* isolate, MicrotasksScope::Type type) : MicrotasksScope( isolate,