Index: test/cctest/test-thread-termination.cc |
diff --git a/test/cctest/test-thread-termination.cc b/test/cctest/test-thread-termination.cc |
index 05a3c3339e48d9acf25b7b60c6006fc9f00e3bbd..85dfd13b602fa9abb0294f0772cdbc98bed1a6c3 100644 |
--- a/test/cctest/test-thread-termination.cc |
+++ b/test/cctest/test-thread-termination.cc |
@@ -403,7 +403,7 @@ TEST(TerminateFromOtherThreadWhileMicrotaskRunning) { |
thread.Start(); |
v8::Isolate* isolate = CcTest::isolate(); |
- isolate->SetAutorunMicrotasks(false); |
+ isolate->SetMicrotasksPolicy(v8::MicrotasksPolicy::kExplicit); |
v8::HandleScope scope(isolate); |
v8::Local<v8::ObjectTemplate> global = |
CreateGlobalTemplate(CcTest::isolate(), Signal, DoLoop); |