Skip to content

Commit a16081c

Browse files
committed
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. PR-URL: #18753 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: Yang Guo <[email protected]>
1 parent faeee11 commit a16081c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4421,7 +4421,7 @@ inline int Start(uv_loop_t* event_loop,
44214421

44224422
isolate->AddMessageListener(OnMessage);
44234423
isolate->SetAbortOnUncaughtExceptionCallback(ShouldAbortOnUncaughtException);
4424-
isolate->SetAutorunMicrotasks(false);
4424+
isolate->SetMicrotasksPolicy(v8::MicrotasksPolicy::kExplicit);
44254425
isolate->SetFatalErrorHandler(OnFatalError);
44264426

44274427
{

0 commit comments

Comments
 (0)