Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 067d134b18650b44a56b5ddcd2338477da7ea802..a8f340db2e4e89627fa1718cea71b7bf5ca73e88 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -10840,18 +10840,21 @@ TEST(DontLeakGlobalObjects) { |
{ v8::HandleScope scope; |
LocalContext context; |
} |
+ v8::V8::ContextDisposedNotification(); |
CheckSurvivingGlobalObjectsCount(0); |
{ v8::HandleScope scope; |
LocalContext context; |
v8_compile("Date")->Run(); |
} |
+ v8::V8::ContextDisposedNotification(); |
CheckSurvivingGlobalObjectsCount(0); |
{ v8::HandleScope scope; |
LocalContext context; |
v8_compile("/aaa/")->Run(); |
} |
+ v8::V8::ContextDisposedNotification(); |
CheckSurvivingGlobalObjectsCount(0); |
{ v8::HandleScope scope; |
@@ -10860,6 +10863,7 @@ TEST(DontLeakGlobalObjects) { |
LocalContext context(&extensions); |
v8_compile("gc();")->Run(); |
} |
+ v8::V8::ContextDisposedNotification(); |
CheckSurvivingGlobalObjectsCount(0); |
} |
} |
@@ -15006,6 +15010,7 @@ TEST(Regress528) { |
context->Exit(); |
} |
context.Dispose(); |
+ v8::V8::ContextDisposedNotification(); |
for (gc_count = 1; gc_count < 10; gc_count++) { |
other_context->Enter(); |
CompileRun(source_exception); |