From ef43b24d88b5db0818e8af07d1e6c71dd56f10fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Tue, 13 Feb 2018 09:23:49 +0100 Subject: [PATCH] src: use non-deprecated V8 microtasks API SetAutorunMicrotasks is deprecated and a warning will be emitted starting from V8 6.5. Use the non-deprecated SetMicrotasksPolicy API instead. --- src/node.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node.cc b/src/node.cc index 4e3638b886fcb8..149d287950795f 100644 --- a/src/node.cc +++ b/src/node.cc @@ -4421,7 +4421,7 @@ inline int Start(uv_loop_t* event_loop, isolate->AddMessageListener(OnMessage); isolate->SetAbortOnUncaughtExceptionCallback(ShouldAbortOnUncaughtException); - isolate->SetAutorunMicrotasks(false); + isolate->SetMicrotasksPolicy(v8::MicrotasksPolicy::kExplicit); isolate->SetFatalErrorHandler(OnFatalError); {