Index: test/cctest/test-microtask-delivery.cc |
diff --git a/test/cctest/test-microtask-delivery.cc b/test/cctest/test-microtask-delivery.cc |
index ecec77fbfd3fce7685f463bad498acee554c6675..3150ab887253d63df34f179689c39d40e4caf7af 100644 |
--- a/test/cctest/test-microtask-delivery.cc |
+++ b/test/cctest/test-microtask-delivery.cc |
@@ -105,7 +105,7 @@ TEST(MicrotaskPerIsolateState) { |
HarmonyIsolate isolate; |
v8::HandleScope scope(isolate.GetIsolate()); |
LocalContext context1(isolate.GetIsolate()); |
- isolate.GetIsolate()->SetAutorunMicrotasks(false); |
+ isolate.GetIsolate()->SetMicrotasksPolicy(v8::MicrotasksPolicy::kExplicit); |
CompileRun( |
"var obj = { calls: 0 };"); |
v8::Local<v8::Value> obj = CompileRun("obj"); |