Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 86a2ddd9cdf932f55355d376753a4dab6afedf67..551309f86a8673f6b6b035a7aebcf55700bd034c 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -20885,6 +20885,7 @@ TEST(CallCompletedCallbackTwoExceptions) { |
static void MicrotaskOne(const v8::FunctionCallbackInfo<Value>& info) { |
+ CHECK(v8::MicrotasksScope::IsRunningMicrotasks(info.GetIsolate())); |
v8::HandleScope scope(info.GetIsolate()); |
v8::MicrotasksScope microtasks(info.GetIsolate(), |
v8::MicrotasksScope::kDoNotRunMicrotasks); |
@@ -20893,6 +20894,7 @@ static void MicrotaskOne(const v8::FunctionCallbackInfo<Value>& info) { |
static void MicrotaskTwo(const v8::FunctionCallbackInfo<Value>& info) { |
+ CHECK(v8::MicrotasksScope::IsRunningMicrotasks(info.GetIsolate())); |
v8::HandleScope scope(info.GetIsolate()); |
v8::MicrotasksScope microtasks(info.GetIsolate(), |
v8::MicrotasksScope::kDoNotRunMicrotasks); |
@@ -20911,6 +20913,7 @@ static void MicrotaskThree(void* data) { |
TEST(EnqueueMicrotask) { |
LocalContext env; |
v8::HandleScope scope(env->GetIsolate()); |
+ CHECK(!v8::MicrotasksScope::IsRunningMicrotasks(env->GetIsolate())); |
CompileRun( |
"var ext1Calls = 0;" |
"var ext2Calls = 0;"); |