Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index b54aa169edb0bb095f19bc1fbede43e7efd5aad9..5af3e7aeae8f36534ff9fd98a03b2c48e78eb55d 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -7121,6 +7121,7 @@ void WhammyPropertyGetter(Local<String> name, |
THREADED_TEST(WeakReference) { |
+ i::FLAG_expose_gc = true; |
v8::Isolate* isolate = CcTest::isolate(); |
v8::HandleScope handle_scope(isolate); |
v8::Handle<v8::ObjectTemplate> templ= v8::ObjectTemplate::New(isolate); |
@@ -13479,6 +13480,7 @@ static void CheckSurvivingGlobalObjectsCount(int expected) { |
TEST(DontLeakGlobalObjects) { |
// Regression test for issues 1139850 and 1174891. |
+ i::FLAG_expose_gc = true; |
v8::V8::Initialize(); |
for (int i = 0; i < 5; i++) { |