Index: test/cctest/test-microtask-delivery.cc |
diff --git a/test/cctest/test-microtask-delivery.cc b/test/cctest/test-microtask-delivery.cc |
index 108337ae3f627e19d42c46846c99584eca7368dd..cfe5d69202a42246da9ea2c2572910ea67099ebd 100644 |
--- a/test/cctest/test-microtask-delivery.cc |
+++ b/test/cctest/test-microtask-delivery.cc |
@@ -96,7 +96,7 @@ TEST(MicrotaskPerIsolateState) { |
HarmonyIsolate isolate; |
HandleScope scope(isolate.GetIsolate()); |
LocalContext context1(isolate.GetIsolate()); |
- V8::SetAutorunMicrotasks(isolate.GetIsolate(), false); |
+ isolate.GetIsolate()->SetAutorunMicrotasks(false); |
CompileRun( |
"var obj = { calls: 0 };"); |
Handle<Value> obj = CompileRun("obj"); |
@@ -130,7 +130,7 @@ TEST(MicrotaskPerIsolateState) { |
LocalContext context4(isolate.GetIsolate()); |
context4->Global()->Set(String::NewFromUtf8(isolate.GetIsolate(), "obj"), |
obj); |
- V8::RunMicrotasks(isolate.GetIsolate()); |
+ isolate.GetIsolate()->RunMicrotasks(); |
CHECK_EQ(2, CompileRun("obj.calls")->Int32Value()); |
} |
} |