Index: test/cctest/test-parsing.cc |
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc |
index 71cffa65797be0b9b799ec111345cbd28f682c50..8261d058c45453a45021411350af08548c2043d8 100644 |
--- a/test/cctest/test-parsing.cc |
+++ b/test/cctest/test-parsing.cc |
@@ -3571,6 +3571,7 @@ TEST(UseAsmUseCount) { |
TEST(UseConstLegacyCount) { |
+ i::FLAG_legacy_const = true; |
i::Isolate* isolate = CcTest::i_isolate(); |
i::HandleScope scope(isolate); |
LocalContext env; |
@@ -6425,6 +6426,7 @@ TEST(ArrowFunctionASIErrors) { |
TEST(StrongModeFreeVariablesDeclaredByPreviousScript) { |
i::FLAG_strong_mode = true; |
+ i::FLAG_legacy_const = true; |
v8::V8::Initialize(); |
v8::HandleScope scope(CcTest::isolate()); |
v8::Context::Scope context_scope(v8::Context::New(CcTest::isolate())); |